Field type |
Read-only |
Editable |
---|---|---|
boolean |
Font Awesome icons: |
<input type=“checkbox”/> |
Status
Release Available |
Status |
Framework Name |
---|---|---|
2.9 |
Current |
TBC |
General
If a field type is –boolean, it is rendered as a checkbox, which is checked if its value is false and unchecked if its value is true.
Status
Release Available |
Status |
Framework Name |
---|---|---|
3.5 |
Current |
Mui |
General
Bold the checked/switched value.
Unchecked Value |
Checked/Switched value |
---|---|
Status
Release Available |
Status |
Framework Name |
---|---|---|
3.5 |
Current |
Mui |
General
The checkbox can have both label
and optionText
with optionValue
as true
Unchecked Value |
Checked value |
---|---|
Status
Release Available |
Status |
Framework Name |
---|---|---|
3.5 |
Current |
Mui |
General
The checkbox can have both label
and optionText
with optionValue
as true
Unchecked Value |
Checked value |
---|---|
Code JSON
{ "fieldName": "clcommon__Not_A_Citizen__c", "fieldUi": { "fieldType": "boolean", "label": "Not A Citizen", "tooltip": "If you are not US citizen, check the checkbox", "selectOptions": [ { "optionText": "Correct", "optionValue": true } ] } }
Status
Release Available |
Status |
Framework Name |
---|---|---|
3.5 |
Current |
Mui |
General
A Switch can have both label
and two pieces of text at both ends.
-
The left-end text is the
optionText
with theoptionValue
asfalse
. -
The right-end text is the
optionTextwith
theoptionValue
astrue
.
False Value |
True or Switched value |
---|---|
Code JSON
{ "fieldName": "clcommon__Not_A_Citizen__c", "fieldUi": { "fieldType": "switch", "label": "Not A Citizen", "tooltip": "If you are not US citizen, switch to Correct", "selectOptions": [ { "optionText": "Wrong", "optionValue": false }, { "optionText": "Correct", "optionValue": true } ] } }