
Announcements
Hi,
In my app, I have a gallery from a Main SP list, one of the items is 'Status'. When the status is marked as complete I have a popup, where I have two checkboxes, checkbox1 asks the user "Would you like to archive this item", checkbox2 asks "Would you like to add this item to Maintenance".
I have two seperate SP lists for Archive and Maintenance.
What id like is a button in my popup window and the button set to patch the data I need to either Archive or Maintenance SP lists, or both depending on checkboxes selected.
I assume i'll need an IF but can't seem to figure out the code for if checkbox1 is selected patch to Archive, if checkbox 2 is selected patch to Maintenance or if both selected patch to both lists.
Any help appretiated.
Hi @JimboSey ,
The if statement should be the syntax as follows:
If(
CheckBox1.Value,
If(
CheckBox2.Value
Patch(
Archive,
....
);
Patch(
Maintenance,
....
),
Patch(
Archive,
....
)
),
If(
CheckBox2.Value
Patch(
Maintenance,
....
)
)
)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.