@ClarkyPA365 - one method below. Note this solution does not include a checkbox embedded into the Gallery, as I no see purpose in using one. I assume you’re populating your Edit Form with a Gallery selection. Let’s call it "Gallery_Data" for this example.
If Gallery_Data and the Form are on the same screen:
1. Add another Gallery (we call it this Gallery_Approvers) into your Form Screen
2. Set the Items property to:
Filter(
'Sap - Approvers Flow',
CostCentre = CostCentre_Value.Text,
Amount <= Value(AmountReqd_Value.Text)
)
3. On the OnSelect property of Gallery_Approvers, enter:
UpdateContext({ctx_name_displayname: ThisItem.'Full Name'});
UpdateContext({ctx_name_email: ThisItem.Email})
4. On OnSelect property of Gallery_Data, enter:
UpdateContext({ctx_name_displayname: ThisItem.'Your Approver Name Field'});
UpdateContext({ctx_name_email: ThisItem.'Your Approver Email Field'})
5. On the Default property of the Text Input control inside the DataCard for the Approver Name field, enter:
ctx_name_displayname
6. On the Default property of the Text Input control inside the DataCard for the Approver Email field, enter:
ctx_name_email
If Gallery_Data and the Form are on different screens:
1. Follow steps 1 and 3 above
2. On the OnSelect property of Gallery_Data (which is on another screen), keep whatever you already have (e.g. any variables you’re declaring) but also enter:
Navigate(
'Your Form Screen',
ScreenTransition.Fade,
{
ctx_name_displayname: Blank(),
ctx_name_email: Blank()
}
)
3. On the Default property of the Text Input control inside the DataCard for the Approver Name field, enter:
Coalesce(
ctx_name_displayname,
Parent.Default
)
4. On the Default property of the Text Input control inside the DataCard for the Approver Email field, enter:
Coalesce(
ctx_name_displayname,
Parent.Default
)