Copy link to clipboard
Copied
I am preparing a form. If somenoe selects "No" for any question in one section, I'd like it to automatically indicate to the user that the form does not need to be submitted. Any chance that's possible?
Copy link to clipboard
Copied
You can set an alert, something like this as validate script of that field:
if(event.value == "No")
app.alert("You do not need to submit this file",3);
Copy link to clipboard
Copied
I would use a (read-only) text field with red text that says something like "NOTE: This file does NOT need to be submitted" and a script to make it visible when any of those fields is set to No. If you let us know the names of those fields I could help you with the code to do that.
Copy link to clipboard
Copied
If the user clicks Check Box5#0, they should get a message to not submit. Is that enough? Thanks so much for the help.
Copy link to clipboard
Copied
If you want to make sure they can't submit, you should also set the submit button to read only when they check the checkbox.
Copy link to clipboard
Copied
As the custom calculation script of the warning message text field enter the following:
event.target.display = (this.getField("Check Box5").valueAsString=="Off") ? display.hidden : display.visible;
Copy link to clipboard
Copied
Thanks for much for the help. Do I need to insert this into your code "NOTE: This file does NOT need to be submitted"?
If so, where? Sorry not a coder : )
Copy link to clipboard
Copied
No, that needs to be the default value of the text field. You can set it under the field's Properties, in the Options tab.