Web Page View - Auto-select Check Boxes

From SmartWiki
Jump to: navigation, search

To show check boxes on web page view, use the following syntax:

@checkbox('fieldname/field number','selected value')@

  • There are single quotes around field name and value.

Example: A custom field "Marital Status" is a multiple-select check box and options are "Single;Married;.Divorced".

Another web page custom field is created and source like this

<input type=checkbox @checkbox('Marital Status','married')@> Married

<input type=checkbox @checkbox('Marital Status','single')@> Single

<input type=checkbox @checkbox('Marital Status','divorced')@> Divorced

Impact: When a Multiple Select check box custom field is displayed in a Web Page View field the check boxes are displayed and already selected.