Deselect Value List Item with a Script

Discussion created by on Jul 17, 2018
Latest reply on Jul 17, 2018 by

Is there a way to write a script step that deselects a particular value from a checkbox value list.


For instance if a value list has:


fruit-1000 (apple)

fruit-1001 (pear)

fruit-1002 (peach)

fruit-1003 (plum)


and both fruit-1001 and fruit 1002 are checked.


in a table for "basket", there is portal set up to list selections based on the checked boxes.


i want the user to be able to tap a "delete" button to remove a certain fruit from the basket based on the fruit's unique ID. (instead of going in an manually unchecking.)


is there a way to set a variable for the portal row fruit id, and then deselect only that item?