Hi @oappdev ,
Could you please share a bit more about your scenario?
Do you add the Checkbox controls inside the TypeOfPerson field data card?
Do you want to display the TypeOfPerson field data card when your Edit form is in View Mode or Edit Mode?
If you just want to display the TypeOfPerson field data card when your Edit form is in View Mode or Edit Mode, I agree with @WarrenBelz 's thought almost. Please set the Visible property of the TypeOfPerson field data card within the Edit form to following:
If(
EditForm1.Mode = FormMode.View || EditForm1.Mode = FormMode.Edit,
true,
false
)
If you want to check corresponding Checkbox based on the "TypeOfPerson" field value within your Edit form or Display form, please take a try with the following workaround:
Set the Default property of the "Patient" Checkbox to following:
If(
ThisItem.'TypeOfPerson'.Value = "Patient",
true,
false
)
Set OnCheck property of "Patient" Checkbox to following:
Reset(TeamMemberCheckbox)
Set the Default property of the "Team member" Checkbox to following:
If(
ThisItem.'TypeOfPerson'.Value = "Team member",
true,
false
)
set the OnCheck property of "Team member" Checkbox to following:
Reset(PatientCheckbox)
set the Update property of the "TypeOfPerson" field data card to following:
If(
PatientCheckBox.Value = true,
{
Value: "Patient"
},
TeamMemberCheckBox.Value = true,
{
Value: "Team member"
}
)
Please take a try with above solution, check if the issue is solved.
Best regards,