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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to display a message when user open form

pg38905522
Level 2
Level 2

Hi,

l want to display a message when a user open a form.

The message will explain the form and if the user clik NO the form close

Thanks

Pierre

1 Accepted Solution
jasotastic81
Correct answer by
Level 7
Level 7

You can use this script in the docReady event.


if (xfa.host.messageBox("A message goes here to explain the form","Title for the Message Box", 1, 2) != 4) event.target.closeDoc();


Fair warning, I was unable to 'test' this in LC, I had to save the file and open it in Reader to verify it was working.

View solution in original post

1 Reply
jasotastic81
Correct answer by
Level 7
Level 7

You can use this script in the docReady event.


if (xfa.host.messageBox("A message goes here to explain the form","Title for the Message Box", 1, 2) != 4) event.target.closeDoc();


Fair warning, I was unable to 'test' this in LC, I had to save the file and open it in Reader to verify it was working.

View solution in original post