popup editor how to set automaticly countdown close and show on page.

popup editor how to set automaticly countdown close and show on page.

Hi Jack,

You will have to implement part of this in Javascript.

On your screen you will need to define a Container that displays the initial value of the countdown. Give it a name. You will also need another Container, with Visible property set to False and a Button inside, with its Method set to Ajax Submit and its Destination set to a Screen Action that calls the Popup_Close.

On your Javascript you will have to use the setInterval() function, the first parameter is the function that gets executed every time the interval is reached, the second parameter is the duration of the interval.

Your Javascript function needs to do one of two things: updated the countdown or; if the countdown has already reached 0, programmatically click your Button and call the clearInterval() function to remove this countdown once it ends.

You can see a description of how to programatically click a button here.