Skip to main content
Participant
September 11, 2023
Question

Unselect the check mark I want it to go back to being blank. Is there code for that?

  • September 11, 2023
  • 1 reply
  • 275 views

Hi,

 

I am creating a form for a lesson plan.  I have a field that when the checkbox is clicked it will fill the content in other text boxes. However, when unelecting the check mark it leaves the filled content. If I unselect the check mark I want it to go back to being blank. Is there code for that? 

This topic has been closed for replies.

1 reply

akinaryAuthor
Participant
September 11, 2023

The code I am currently using:

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

this.getField("Text5").value=this.getField("Text3").value;

Bernd Alheit
Community Expert
Community Expert
September 11, 2023

Add this:

else this.getField("Text5").value = "";