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

Alert when checking a radio button

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

 

TOPICS
Acrobat SDK and JavaScript

Views

71

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

Community Expert , Aug 23, 2020 Aug 23, 2020

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

 

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

Likes

Translate

Translate
Community Expert ,
Aug 23, 2020 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
community guidelines
Explorer ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

LATEST

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
community guidelines