Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

New Here ,
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

134

Likes

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

Adobe Community Professional , Apr 29, 2021 Apr 29, 2021
Try this: if(event.value > 73) app.alert("Custom message goes here");

Likes

Translate

Translate
New Here ,
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.

Likes

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

Copy link to clipboard

Copied

Try this:

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

Likes

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

Copy link to clipboard

Copied

LATEST

Thank You! This work perfect.

Likes

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