These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Java Script for Combo Box on Selection

tufail
Registered: Jun 16 2009
Posts: 4
Answered

Hi friends,

I want to use JavaScript in LiveCycle Designer at Combo Box when select "Sunday" it will have to show this message "Sunday a rest day", kindly help me i'll be very thankful to you.

Tufail Shahzad

Tufail

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
To have this show after the selection is confirmed by exiting the field, for the 'exit' event you can use:
if($ == "Sunday") thenxfa.host.messageBox("Sunday is a day of rest", "Your selection:", 3, 0)endif

More information about the 'if' statement and 'messageBox' method is in the 'Scripting Reference' option under the 'Help' menu option of LiveCycle Designer.

George Kaiser