Question

5
Replies
3436
Views
Close popover
Jeff Gosnell (JeffGo)
Appriss, Inc

Appriss, Inc
US
JeffGo Member since 2017 14 posts
Appriss, Inc
Posted: September 24, 2018
Last activity: October 24, 2018
Closed
Solved

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
    1. Event: Click
    2. 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
    1. Event: Click
    2. Action:
      1. Set Value: Property .pySelected; Value: "false"; When Other Property .pySelected = "true"
      2. 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
    1. Event: Click
    2. 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****

Low-Code App Development User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.