I had a chance to try to make this work but have hit a snag.
The checkbox field has 4 options which will be stored as 1, 2, 3, and/or 4 depending on the checkboxes selected.
In the database, it's stored as 1|*|2|*|3|*|4.
I need a "value" statement that will read the CHECKBOX field, parse the data, and based on what it finds, store a text value in a textfield.
My Guess: (I know this is wrong - can't figure out how to parse the data stored in the checkbox field)
Value Row 1: [cb:if LEFT(cb_volunteertype,1)=~"1"]Application Processor[cb:else]NULL[/cb:else][/cb:if]
Value Row 2: [cb:if MID(cb_volunteertype,5,1)=~"2"]Transporter[cb:else]NULL[/cb:else][/cb:if]
Value Row 3: [cb:if MID(cb_volunteertype,9,1)=~"3"]Fosterer[cb:else]NULL[/cb:else][/cb:if]
Value Row 4: [cb:if MID(cb_volunteertype,13,1)=~"4"]Other[cb:else]NULL[/cb:else][/cb:if]
For example,
A user selects volunteer type 1 and 3. The cb_volunteer_type field is now set to 1|*|3.
When the CB Auto Action is done, this would be the final result:
cb_volunteer_type_1 = 1
cb_volunteer_type_2 = 3
cb_volunteer_type_3 = null
cb_volunteer_type_4 = null
The code above assumes I'm trying to read one checkbox field and store data in another checkbox field, but what I'm trying to do is different, see above.