Skip to main content
Participating Frequently
April 29, 2021
Answered

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

  • April 29, 2021
  • 2 replies
  • 1505 views

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?

This topic has been closed for replies.
Correct answer Nesa Nurani

Try this:

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

2 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
April 29, 2021

Try this:

if(event.value > 73)
app.alert("Custom message goes here");
Bryan5F8BAuthor
Participating Frequently
April 29, 2021

Thank You! This work perfect.

Bryan5F8BAuthor
Participating Frequently
April 29, 2021

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.