alert()

Return result of input field validation.

bool alert( string handle [, string field ])

Return

Returns TRUE if the checked field(s) contain invalid data.

Parameter
Description
handleHandle name to address form. The handle is needed if function is called outside setup() and close().
fieldCheck validity of this field only. If the field parameter is omitted, the method checks the validity of all the defined fields.

Check all form alerts

$FORM->alert("testform")
RETURN: ARRAY [0]

Check validity of one single field

$FORM->alert("testform", "testfield")
RETURN: FALSE