Skip to main content
Inspiring
Mar 25, 2019 7:53 AM UTC
Answered

pop up warning box in drop down list

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Mar 25, 2019 9:20 AM UTC

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.

3 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Mar 25, 2019 9:20 AM UTC

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.

Translate
PerivanPAuthor
Inspiring
Mar 25, 2019 10:39 AM UTC

Brilliant thank you very much

Translate