RESET FORM NOT RESETTING HIDDED FIELDS BASED ON RADIO BUTTON CHOICES

Explorer ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

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

 

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

3.0K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

It clears the radio buttons, nothing more.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 26, 2020 Jun 26, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 29, 2020 Jun 29, 2020

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines