How to set and unset checkbox by clicking on associated field value
So, I've got a table that displays some data. On the left side, there is a checkbox which sets the boolean value .pySelected. This works fine.
But I also want to allow the user to click on the text in the row to set and unset the checkbox with the associated .pySelected property. I'm having trouble with this.
Steps taken:
- Create an action set on the cell's field
- Event: Click
- Action: Set Value: Property .pySelected; Value: !.pySelected
This failed with an "Invalid Page Name" and "Invalid property reference."
Well, that does sort of make sense. But I'm not sure how to set it to its own inverse.
- Create an action set on the cell's field
- Event: Click
- Action:
- Set Value: Property .pySelected; Value: "false"; When Other Property .pySelected = "true"
- Set Value: Property .pySelected; Value: "true"; When Other Property .pySelected = "false"
This allowed me to submit the change, save, and then launch the page. But when clicking on the text in the table, it did not select or deselect the checkbox.
- Create an action set on the cell's field
- Event: Click
- Action: Set Value: Property .pySelected; Value: "true"
This actually worked to set the checkbox. But, of course, it did not unset the checkbox when I clicked it again.
So, I've got a table that displays some data. On the left side, there is a checkbox which sets the boolean value .pySelected. This works fine.
But I also want to allow the user to click on the text in the row to set and unset the checkbox with the associated .pySelected property. I'm having trouble with this.
Steps taken:
- Create an action set on the cell's field
- Event: Click
- Action: Set Value: Property .pySelected; Value: !.pySelected
This failed with an "Invalid Page Name" and "Invalid property reference."
Well, that does sort of make sense. But I'm not sure how to set it to its own inverse.
- Create an action set on the cell's field
- Event: Click
- Action:
- Set Value: Property .pySelected; Value: "false"; When Other Property .pySelected = "true"
- Set Value: Property .pySelected; Value: "true"; When Other Property .pySelected = "false"
This allowed me to submit the change, save, and then launch the page. But when clicking on the text in the table, it did not select or deselect the checkbox.
- Create an action set on the cell's field
- Event: Click
- Action: Set Value: Property .pySelected; Value: "true"
This actually worked to set the checkbox. But, of course, it did not unset the checkbox when I clicked it again.
***Edited by Moderator Marissa to update platform capability tags****