Skip to main content
Known Participant
Mar 7, 2025 6:55 PM UTC
Question

Deselecting a checkbox and Reset a form

Hello!

I have a section on my interactive form where I created a mouse up action to reset a form on a set of checkboxes. 

 

Is there a way to also have a deselect option so if one item is deselected it will reset that specific checkbox?

 

Thank you so much for your help!

9 replies

PDF Automation Station
Community Expert
Community Expert
Mar 7, 2025 7:32 PM UTC

In the mouse up action:

if(event.target.value=="Off")

{//your reset script}

Translate
Known Participant
Mar 8, 2025 1:50 AM UTC

Thank you so much for your reply. 

Do I add the above script as a separate mouse up action using Java Script? When I did that it did not work. I put the name of the field in place of "your reset script" and it did not take. What am I missing? I am new to JavaScript. 

 

Thank you so much!

Translate
PDF Automation Station
Community Expert
Community Expert
Mar 8, 2025 11:01 AM UTC

Please post your script.

Translate