Hi,
I have some understanding with checkboxes on Powerapps. I have on specific column a multi choice option : for example, I have some checkboxes where each of them has a specific value and different values : a, b, c and d.
This is my onCheck, OnUncheck, OnSelect and Default on one of them :
- OnCheck
ClearCollect(
Collection1;
If(Checkbox1.Value;"a");
If(Checkbox2.Value;"b");
If(Checkbox3.Value;"c");
If(Checkbox4.Value;"d")
)
- OnUncheck
ClearCollect(
Collection1;Filter(
Collection1;
!IsBlank(Value)
)
);;
- OnSelect
Collect(Collection1; 'Données');;
- Default
If(
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Id: 1;
Value: "a"
} in Matériel_DataCard1.Default;
true;
false
When I check for the first time the checkbox this work fine, and I see my value inserted on my multi choice column. However, when I unchecked one checkbox (for example I have unchecked the checkbox1 and checked the checkbox2), on my multi choice the value of the first checkbox wasn't removed and the value of the second was added.
How can I remove the value of my checkboxes when I unchecked them ?
Thanks for your help.