SBM JavaScript Library Guide → Reference → Field Methods → 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.
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. |
Result | Value |
---|---|
(none) |
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.")
(none)
Copyright © 2007–2015 Serena Software, Inc. All rights reserved.