Skip to main content
tacnola
Known Participant
June 25, 2020
Question

RESET FORM NOT RESETTING HIDDED FIELDS BASED ON RADIO BUTTON CHOICES

  • June 25, 2020
  • 4 replies
  • 4462 views

Hi All,

I have a reset button to reset the entire form. But when "pushed". It resets everything execpt the hidded/visible choices made by a YES/NO radio button choice.  The YES/NO radio choices work as expected in regards to hiding/unhiding the fields.
Can anyone assist me in clarifing why this is happening?

I am using DC.

Thank you,

T

 

This topic has been closed for replies.

4 replies

tacnola
tacnolaAuthor
Known Participant
June 29, 2020

Thank you everyone for your assistance. With y'alls help, I was able to correct my script! I appreciate your help. And apologize for the latest of my replay!

T

try67
Community Expert
Community Expert
June 26, 2020

If you place the code that determines whether to show/hide those fields as the calculation script of a (hidden) field then it will execute when you reset the form (like all calculation scripts) and you'll get two birds with one stone.

Inspiring
June 26, 2020

It would be best to use JavaScript in addition to (or instead of) the reset form action you're already using. A script can do the job of showing/hiding fields as well as setting field values.

 

A reset form action (or the resetForm JavaScript method) will simply set the field value of each included field to whatever the default value of each field is. It cannot (directly) control the visibility or other field properties of a group of fields.

Bernd Alheit
Community Expert
Community Expert
June 26, 2020

It clears the radio buttons, nothing more.