Copy link to clipboard
Copied
I am trying to send a document to a client, that needs a compulsary description (text box) if the answer 'Yes' checkbox is selected. I ideally would like the answer 'No' checkbox to generate the next question so that they know to move on to next automatically.
How can i do this ?
Copy link to clipboard
Copied
<moved from enterprise and teams>
Copy link to clipboard
Copied
You can set a text field as "required", but that is only enforced when the file is submitted, unless a special script is used to validate it when saving or printing it, for example.
The basic code is this (to be used as the custom Calculation script of the text field):
event.target.required = (this.getField("CheckBox1").valueAsString=="Yes");