Re: Change Value of Checkbox on a form

Anonymous
Not applicable

Change Value of Checkbox on a form

Hello.

Currently, if you have a checkbox on a form, it outputs a 1 for a checked box, 0 for an unchecked box.

Is there anyway to for it to output a 'Yes' for a checked box and 'No' for an unchecked box?

Thanks in advance for your help.
Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: Change Value of Checkbox on a form

Not without doing some custom validation rules.

The easiest thing to do would be to have a smart campaign running in the background:

If data value changes _______
If new value is 1, change data value to Yes
If new value is 0, change data value to No
Josh_Hill13
Level 10 - Champion Alumni

Re: Change Value of Checkbox on a form

You can also change this field to a String and have it do Yes or No.
 

Then do the reverse of what Thomas suggests if you need Yes=1 and No=0 in the original field.

Anonymous
Not applicable

Re: Change Value of Checkbox on a form

If you wanted to do something on the other side of things, you could write some custom Javascript to change the way the form displays depending on the value, although the suggestions above are probably a little easier to implement.
Anonymous
Not applicable

Re: Change Value of Checkbox on a form

Thank you for the suggestiions.

I've tried doing the smart campaign in the background and for some reason, it just won't recognize the value coming in as a 1. 

I've tried it a couple different ways:

1) 

Smart List
Trigger: Fills Out Form (My Form)
Trigger: Data Value Changes - Attribute: Speak with Someone - New Value is 1 

Flow
Flow Actions: Change Data Value - Attribute: Speak WIth Someone - New Value Yes

2) Without the "Fills Out Form" Trigger

3) With just a Data Value Changed Filter, No Trigger, running on a schedule. 

None of the above three options changed my 1 (generated by a checked checkbox) to a Yes. 

Any other tips? 
Anonymous
Not applicable

Re: Change Value of Checkbox on a form

I should note that I'm not too familiar with custom Javascript, so the smart campaign route did seem like the easiest option for me. 

Thanks again. 
Anonymous
Not applicable

Re: Change Value of Checkbox on a form

Two things to try:

1) In your first example above, try putting a 30 second wait step in before changing the data value.

2) Try using the value "true" instead of 1.