Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Set fields to indicate action

New Here ,
Apr 25, 2024 Apr 25, 2024

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?

TOPICS
Create PDFs , PDF forms
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2024 Apr 25, 2024

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2024 Apr 25, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 25, 2024 Apr 25, 2024

If the user clicks Check Box5#0, they should get a message to not submit. Is that enough? Thanks so much for the help. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2024 Apr 25, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2024 Apr 26, 2024

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 01, 2024 May 01, 2024

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 : )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 02, 2024 May 02, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines