Hi,
I have a "Tasks" datatable connected to a Sharepoint list. I have a form inside a container with a delete button. So far I can create and edit records, but there's a problem configuring the record deletion: I added a delete icon and I've set its OnSelect property to:
Remove('Randomizer - Tasks',DataTable1.Selected)
This works fine, but then I want it to delete the record and Close the form by setting its OnSelect to:
Remove('Randomizer - Tasks',DataTable1.Selected) && Set(modalView, false)
it doesn't work. It shows this error: "Invalid argument type: Expecting one of the following: Boolean, Number, Text, Option set value"
I've already set the visible variable for the form.
Both functions work individually, but they don't work together with the &&. However, in some other buttons I have a SubmitForm and Set functions working together without a problem.

I appreciate your help on finding what my error is.