You are viewing limited content. For full access, please sign in.

Question

Question

re hide fields on load

asked on July 8, 2019 • Show version history

Hi All,

In the field rules I have a drop down and depending on the option this will show a radio button and then depending on the radio button selection this will show a second drop down.

When the form continues to another user. I have used the below to clear the fields however the Radio button and second drop down are not re hidden even though they are clear any help on this please?

$(document).ready(function(){
	$('.radio input').prop('checked', false);
  $('.NextStep  select').val('');
});

Thanks

Mark

0 0

Answer

SELECTED ANSWER
replied on July 8, 2019

Add a .change event after you set the value, the field rules are not evaluated until then.

 

$('.NextStep  select').change();
1 0
replied on July 9, 2019

Worked perfectly! Thanks

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.