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

Set fields to indicate action

New Here ,
Apr 25, 2024 Apr 25, 2024

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?

TOPICS
Create PDFs , PDF forms

Views

304

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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. 

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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;

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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