Changes

Jump to: navigation, search

SmartCheck Validation

958 bytes added, 15:34, 9 December 2015
no edit summary
Notice the stored value calls the field using the variable syntax we learned in the variable processor lesson.
 
 
=Field vs System Messages=
In the SmartCheck code builder there is a select where you can choose between '''Field''' and '''System''' Messages. '''Field''' messages appear both at the top of the application and on the field that failed validation, this type is recommended for most validations. '''System''' messages appear only at the top of the application. You might use System messages when your validation compares more than one field, as it may not be obvious which field to highlight with the error message.
 
 
Here is how it looks when you call a system message.
 
 
'''result.addMsg('Your message goes here.'); }''''
Here is how it looks when you call a Field message on a custom field.
''''result.addMsg('cf_@field name.id@', 'Your message goes here.); }'''
Notice the field name is added before your message, so the system knows where to place the validation message, and the system knows where to bring your cursor should you click the message.
=Examples=
2,004
edits

Navigation menu