Hi @Anonymous ,
Could you please share a bit more about the formula you typed within the Items property of the ComboBox inside your Gallery?
Do you want to select IncidentGroup value from the ComboBox1 inside your Gallery?
Based on the screenshot that you mentioned, I think it is not necessary to add a ForAll function to achieve your needs. You just need to modify your formula as below:
Patch(
CollIncident,
ThisItem,
{
Id: lblCustomID.Text,
IncidentGroup: ComboBox1.Selected.Value, /* <-- reference value from the ComboBox1 rather than Radio control */
IncidentCategory: txtIncidentCategory.Text,
ShowSaveButtons: false
}
);
If(
EditPressed,
false,
Collect(
CollIncident,
{
Id: "",
IncidentGroup: "",
IncidentCategory: "",
ShowSaveButtons: true
}
)
);
UpdateContext({EditPressed: false});
In addition, if you want the saved IncidentGroup value to be shown up within the ComboBox1, please consider set the DefaultSelectedItems property of the ComboBox1 to following:
{
Value: ThisItem.IncidentGroup
}
If the Items property of the ComboBox1 set to a Distinct(...) formula, please consider modify above formula as below:
{
Result: ThisItem.IncidentGroup
}
Please take a try with above solution, check if the issue is solved.
Best regards,