Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Pop-up when opening form

Avatar

Level 2

Hallo all,

How can I set an pop-up script to the opening of an pdf form?

greetings,

Timo

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Timo,

JP Terry's book is excellent.

For the opening form popup I would use the docReady event of the root node.

When closing you could try the docClose event, but the form will have already closed when this event fires.

Niall

View solution in original post

4 Replies

Avatar

Level 10

Hi Timo,  Good option is to use the docReady event, as this only fires once. You could use xfa.host.messagebox(), app.alert() or the response method. Check the help file for the syntax.   Niall

Avatar

Level 2

Hi Niall,

I have an book from J.P. Terry with some examples for messageboxes, but he doesn't tell me in witch event it must placed. So i asked is here.

Do you also now witch event i must use for show an pop-up before closing?

greetings Timo

Avatar

Correct answer by
Level 10

Hi Timo,

JP Terry's book is excellent.

For the opening form popup I would use the docReady event of the root node.

When closing you could try the docClose event, but the form will have already closed when this event fires.

Niall

Avatar

Level 2

Okay,

I will try some boxes to get it nice.

Thanks!