Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

how specify alert with setTimeOut() function

Avatar

Level 5

Hi All.

I would like to close form by condition. But before form will closed I would like to display popup alert for 1-2 seconds and then auto close form. How to do that?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I don't think you will be able to do this with the standard app.execDialog() or app.alert() dialogs as the timer is paused when the dialog is displayed, but you could make a subform visible, so that it looks like a popup.

This sample uses that technique to display an alternative date picker, which is really just another positioned subform popping up.

Adobe LiveCycle Designer Cookbooks by BR001: An alternative Date Picker for LiveCycle Designer forms

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

I don't think you will be able to do this with the standard app.execDialog() or app.alert() dialogs as the timer is paused when the dialog is displayed, but you could make a subform visible, so that it looks like a popup.

This sample uses that technique to display an alternative date picker, which is really just another positioned subform popping up.

Adobe LiveCycle Designer Cookbooks by BR001: An alternative Date Picker for LiveCycle Designer forms

Bruce