Difference between revisions of "Mandatory"

From SmartWiki
Jump to: navigation, search
(See Also)
Line 15: Line 15:
 
* [[JavaScript Validation]]
 
* [[JavaScript Validation]]
 
* [[Making Contact Standard Fields Mandatory]]
 
* [[Making Contact Standard Fields Mandatory]]
 +
* [[JavaScript_Validation#To_make_a_field_conditionally_mandatory|Making a Custom Field Conditionally Mandatory]]
  
 
[[Category:Glossary]][[Category:Validation]]
 
[[Category:Glossary]][[Category:Validation]]

Revision as of 08:35, 26 February 2014

Within the custom field settings, the checkbox "Allow Empty" determines whether or not the field is treated as mandatory.

AllowEmpty.png

New custom fields default to having "Allow Empty" enabled, meaning that they are not mandatory fields.

If a field is mandatory, and the object is saved or submitted with a blank value, the user will be prompted with the message entered into the Validation Message section of the custom field settings.

If the Validation Message is left blank, the text "X can not be empty." will be displayed in a pop-up, where X is the custom field's caption.

The captions of mandatory fields automatically have special formatting applied to them to indicate that the given field is mandatory. You can set a field to appear as a mandatory field by selecting the "Appear Mandatory" setting in the custom field settings. This does not make the field mandatory, but the caption will have the special formatting applied to it. This setting is used in conjunction with the JavaScript Validation function in cases where customized validation is implemented on a field.

AppearMandatory.png

See Also