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

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

Avatar

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile
Niall_O_Donovan
Level 10

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.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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")

}