Skip to main content
Inspiring
March 25, 2019
Answered

pop up warning box in drop down list

  • March 25, 2019
  • 1 reply
  • 2931 views

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

This topic has been closed for replies.
Correct answer try67

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.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 25, 2019

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.

PerivanPAuthor
Inspiring
March 25, 2019

Brilliant thank you very much