MakeFieldInvalid

Marks the specified field as invalid, if it is not already marked as such. It does not update the form and the label. It displays an error on submit that prevents the form from being submitted.

Parameters

Name Type Description
fieldName String The name of the field.
msg String The message to display for this invalid field. The message is displayed when the user clicks OK in a transition form.

Return Value

Result Value
(none)  

Examples

This example marks the Unit Price field as invalid:

MakeFieldInvalid("Unit Price", "The value in the 'Unit Price' field "
  + "must be greater than $5 and less than $500.")

Comments

(none)