Highlighted

Alert Box

Avatar

24-02-2009

I am new to Livecycle 8. A customer has a request for a alert box to appear with some instructions once a check box or radio button is selected. How do I go about executing this request.



Thanks in advance!

Replies

Highlighted

Avatar

Avatar

Niall_O_Donovan

Total Posts

4.4K

Likes

645

Correct Answer

786

Avatar

Niall_O_Donovan

Total Posts

4.4K

Likes

645

Correct Answer

786
Niall_O_Donovan

24-02-2009

Hi Tammi,



You could use the app.Alert method in an if statement in the exit event of the checkbox or radio buttons. First set the binding on the object to 0 for off and 1 for on.



Then in the exit event, have the following:



if (this.rawValue == 0) {

app.alert({

cMsg: "Your message here. \n\nUsing backslash and n will give you spaces in the message box.",

cTitle: "Name of your organisation",

nIcon: 2, nType: 2

});

}



There are several examples in other threads.



N.
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

24-02-2009

On the exit event of the checkbox - put this javascript code:



if (this.rawValue == 1){

app.alert("This is the text of the message")

}