Goal: Default nationality = Syrian, but user can change it by ticking a checkbox
Use case summary
program attribue :Nationality
Type: Text
Linked to Option Set (Nationalities)
program attribue : Not Syrian
Type: Yes only
Acts as a checkbox
When checked → user can change nationality
Program Rule:
Assign “SY” to Nationality only when (Not Syrian) is NOT checked
so if the user select check box the attribue will be editable >> change default value
Create Program Rule
Condition :
A{notsyrian} == false
Program Rule Action
Action type: Assign value
program attribue : Nationality
Value:‘SY’
the result :
if User does nothing Value stays SY
if User checks Not Syrian >> Nationality >> becomes editable and can change it
if User checks Not Syrian >> Nationality >> becomes editable and can change it
yes
what if the user checks Not Syrian and then unchecks it, will this change the default value back to SY?
yes
the value “SY” will be assigned by program rule