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

pop up warning box in drop down list

Participant ,
Mar 25, 2019 Mar 25, 2019

Copy link to clipboard

Copied

Hi,

Is there a way to have an alert pop up when a certain selection is selected in a drop down list

thanks in advance

Paul

TOPICS
PDF forms

Views

2.5K

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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 25, 2019 Mar 25, 2019

Copy link to clipboard

Copied

Sure. You can use this code as the custom validation script of the drop-down field:

if (event.value=="Some value") app.alert("Some message text.",3);

Make sure to tick the box to commit the selected value immediately (under Properties - Options), so that it show the message as soon as you make the selection. Otherwise it will only appear when you exit the field.

View solution in original post

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 ,
Mar 25, 2019 Mar 25, 2019

Copy link to clipboard

Copied

Sure. You can use this code as the custom validation script of the drop-down field:

if (event.value=="Some value") app.alert("Some message text.",3);

Make sure to tick the box to commit the selected value immediately (under Properties - Options), so that it show the message as soon as you make the selection. Otherwise it will only appear when you exit the field.

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
Participant ,
Mar 25, 2019 Mar 25, 2019

Copy link to clipboard

Copied

Brilliant thank you very much

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
Engaged ,
Jul 15, 2020 Jul 15, 2020

Copy link to clipboard

Copied

LATEST

Hi Try!  This is very close to what I need and I'm hoping you can help me.  I only need the alert to pop up when a selection is selected on the drop down if another text field (named Hrs) hasn't been filled in.  Is there a way to do that?  Thanks!

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