Alert Box

Tags:  

Table of Contents  [ Hide]

Alert Box

The alert box displays an alert message, when the value of a field is changed or when a form is loaded. It is used in the on user input field action or on load form action script.

Syntax

alert <value>;

where,

  • value - the alert message to be displayed.

Example

Alerts the week of the year of a date field when a date is entered by the user.

form  FormA
{

Date1
(
type = date
on user input
{
alert(input.Date1.getWeekOfYear() + "th week of the year");
}

)

}



0 Comments  Show recent to old
Post a comment


 RSS of this page