AnsweredAssumed Answered

Script to set a checkbox to a value.

Question asked by JimBessette on Nov 15, 2013
Latest reply on Nov 15, 2013 by JimBessette


Script to set a checkbox to a value.


     I have one field that is using values in checkboxes.   I want to create a script that will "set" one of the checkboxes, without altering the others.  I can easily do this with radio buttons with Set Field.  But I know that checkboxes are stored as (for lack of better terminology right now (array?)) a list of values that are set.   I don't know if there's a relatively simple script to set one box without unsetting the rest.  I'm sure I can figure out a rather long script to get all the values, and determine what is set and not, and add the new one in.  Seems like there would be an easier way to do this with some function that already exists.  I'm just not familiar enough with them to know if there is.