OnSelect :If(
Find("Desk1,", varSelectedDesks) > 0,
// If Desk 1 is already selected, remove it from varSelectedDesks
Set(varSelectedDesks, Substitute(varSelectedDesks, "Desk1,", "")),
// If Desk 1 is not selected, add it to varSelectedDesks
Set(varSelectedDesks, Coalesce(varSelectedDesks, "") & "Desk1,")
);
Fill: If(
Find("Desk1,", varSelectedDesks) > 0,
Color.White, // Turns white if Desk 1 is selected
var_ThemeColor // Default color (or any other color you prefer)
)
Visible: If(
!IsBlank(
LookUp(
'Desk Reservation Details_1',
'Reservation Date' = DataCardValue3.SelectedDate &&
'Desk Name' .Value= "Desk 1" &&
'Reservation Status'.Value = "Booked"
)
),
false,true)
In the SharePoint list, the Desk Name is a lookup column, so I made it it allows multiple selections, after that in the Container 1 all the button control is not visible. Please help me out how can I achieve this:
Question 2: In Container 1, How to save the selected button desk names to SharePoint list using patch function.
Please, Help me to resolve this? Thank You in advance!