Boolean
Field type | Read-only | Editable |
---|---|---|
boolean | Font Awesome icons: | <input type=“checkbox”/> |
Features
Negative Boolean
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.
Bold the checked / switched value
Status
Release Available | Status | Framework Name |
---|---|---|
3.5 | Current | Mui |
General
Bold the checked/switched value.
Unchecked Value | Checked/Switched value |
---|---|
Checkbox can have both label and optionText
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 |
---|---|
Checkbox can have both label and optionText
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
Copy
{
"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
}
]
}
}
Switch can have both label and two pieces of text at both end
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
Copy
{
"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
}
]
}
}