Syntax
<dlog:CheckBox id={unique CheckBox ID} fieldname={object field name} Checked={true/false}
InvertCheckedLogic={true/false} CssClass={CSS class}></dlog:CheckBox>
Usage
Displays a dynamic string from a Salesforce record or URL parameter.
Attributes
id: (Required) A unique identifier for the control. Multiple check boxes displaying the same field may be used on a page, but each CheckBox control must have a unique ID.
FieldName: (Required) The Salesforce checkbox field name to be used for data binding.
Checked: Defines the checkbox state. Default=false (not checked).
InvertCheckedLogic: (Optional) Inverts the boolean logic of the Check box so that if Checked="true" then the actual value recorded in Salesforce is "false".
CssClass: (Optional) Reference to a Cascading Style Sheet class for defining presentation of control.
ObjectName: (Optional) Reference to the Salesforce object name (if different than the object defined in the script editor).
View more attributesSimple Example
<dlog:CheckBox id="FinanceCheckbox" Text="I am interested in financing" fieldname="Financing_Interest__c"></dlog:CheckBox>
Newsletter Opt-In Example (InvertCheckedLogic)
(Sets Salesforce EmailOptOut property to "false" when checkbox state is "true".)
<dlog:CheckBox id="EmailOptOutCheckbox" Text="Please add me to your monthly newsletter list"
FieldName="EmailOptOut" Checked="true" InvertCheckedLogic="true"></dlog:CheckBox>