You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Skip logic (Hide/unhide fields based on value selected in another field)
Using custom configuration, users can set fields to show or hide based on value selected in another field.
Click here to expand...
Example: Show custom field(Primary Site) if value selected in 'Clinical Status' field is 'Metastasis (Secondary)'
{
"name": "visit.extensionDetail.attrsMap.primarySite",
"caption": "Primary Site",
"type": "dropdown",
"optional": true,
"showIf": {
"op": "AND",
"rules": [{
"field": "visit.clinicalStatus",
"op": "==",
"value": "'Metastasis (Secondary)'"
}]
},
"listSource": {
"apiUrl": "forms/permissible-values",
"selectProp": "value",
"displayProp": "value",
"queryParams": {
"dynamic": {},
"static": {
"formName": "visitExtension",
"controlName": "primarySite"
}
}
}
}