Copy link to clipboard
Copied
Hi,
I have a form with checkboxes that when is checked shows a text field. This text field is required. When I put in to clear the form, the text field is hidden, but it remains required, which is wrong because it is not visible. How do I remove the required one when cleaning the form?
Javascript in checkbox:
getField("Copo").display = event.target.value === "Off" ? display.hidden : display.visible;
this.getField("Copo").required = (event.target.value!="Off");
Actions in clear button:
reset form an javascript:
getField("Copo").display = display.hidden;
Copy link to clipboard
Copied
Just set the "required" property to false.
Copy link to clipboard
Copied
Just set the "required" property to false.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more