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

Javascript for warning a number is greater than 73 when filling an Acrobat Form

Community Beginner ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

I have a fillable Acrobat form that I would like to have a warning added if the user enters a number greater than 73 a popup would appear with a specific warning that I enter.  I don't know Javascript and I assume I would need to enter this into the Validate field of my form.  Does any have an example script that I could modify?

TOPICS
PDF forms

Views

773

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

correct answers 1 Correct answer

Community Expert , Apr 29, 2021 Apr 29, 2021

Try this:

if(event.value > 73)
app.alert("Custom message goes here");

Votes

Translate

Translate
Community Beginner ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

I don't want to use the automatic one that prevents them from putting a number higher than 73 I only want to add a warning about the consequences.

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 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

Try this:

if(event.value > 73)
app.alert("Custom message goes here");

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 Beginner ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

Thank You! This work perfect.

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 ,
Jan 11, 2024 Jan 11, 2024

Copy link to clipboard

Copied

LATEST

instead of 73, I want to put a value from another box here. How do I call the value into that spot?

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