Highlighted

Alert when checking a radio button

Explorer ,
Aug 23, 2020

Copy link to clipboard

Copied

In a form I created, I have a Radio button RB1.  If the RB1 is selected, I'd like to have an alert message ('too high') if the calculation in another Text Box (TB) is >1000.

Thanks

 

Adobe Community Professional
Correct answer by ls_rbls | Adobe Community Professional

Use a mouse-up action script in the radio button field:

 

if (this.getField("TB").value >1000) {app.alert("too high");}

Topics

Acrobat SDK and JavaScript, PDF forms

Views

25

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

Alert when checking a radio button

Explorer ,
Aug 23, 2020

Copy link to clipboard

Copied

In a form I created, I have a Radio button RB1.  If the RB1 is selected, I'd like to have an alert message ('too high') if the calculation in another Text Box (TB) is >1000.

Thanks

 

Adobe Community Professional
Correct answer by ls_rbls | Adobe Community Professional

Use a mouse-up action script in the radio button field:

 

if (this.getField("TB").value >1000) {app.alert("too high");}

Topics

Acrobat SDK and JavaScript, PDF forms

Views

26

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
Adobe Community Professional ,
Aug 23, 2020

Copy link to clipboard

Copied

Use a mouse-up action script in the radio button field:

 

if (this.getField("TB").value >1000) {app.alert("too high");}

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
Reply
Loading...
Explorer ,
Aug 23, 2020

Copy link to clipboard

Copied

Thank you very much, it works!

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
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF