cancel
Showing results for 
Search instead for 
Did you mean: 

popup window

Former Member
0 Kudos

I would like to add a popup window to certain elements on the form, like if choosing an option from a radio gomb, or clicking on a field, I could show a warning window.

Is this possible anyhow?

Thanks, Peter

Accepted Solutions (1)

Accepted Solutions (1)

harman_shahi
Contributor
0 Kudos

You can use the following line of code

xfa.host.messageBox( "Your message here");

regards,

harman

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Peter,

You can give the following code on the exit event of the field where you want to place the warning message:

xfa.host.messageBox("Warning text");

Regards,

Arafat

Former Member
0 Kudos

Hi Peter,

MessageBox has several parameters using which you can show the message as an Error , warning, Question or status.

$host.messageBox( "Message", "Title", Message Type, Button to Display)

Message Type parametr can have following Integer values:

0 (Error) - This is the default.

1 (Warning)

2 (Question)

3 (Status)

and Button to Display parameter has following values:

0 (OK) - This is the default.

1 (OK, Cancel)

2 (Yes, No)

3 (Yes, No, Cancel)

Hope this helps.

Amit

Former Member
0 Kudos

Thanks guys, this was most helpful!