Re: Forms 2.0 - change checkboxes

Atara_Rotenberg
Level 2
Has anyone tried the new forms set up with check boxes? Any tips on how to change the yes and no checkboxes to a single checkbox option?
Tags (1)
16 REPLIES 16
Casler_Nancy__N
Level 3

I tried the workaround (putting the label in a rich text field), which worked fine for desktop, but on mobile it's wrapping. My customer is asking for me to make that stop. So I tried going back to the "normal" checkbox field, where the checkbox is on the right. Customer wants it back on the left. I tried making my fields "checkboxes," and using that "label to right" checkbox, but it has absolutely no effect on label positioning. Does anyone know how to make this work? And also, how to prevent the checkbox and label from ending up on different lines from each other on mobile devices (even when I do not use the rich text field workaround approach)?

Cheral_Jansen
Level 2
Great workaround, thanks for that Dory 🙂
Dory_Viscoglio
Level 10
Hi Cheral, the workaround that I use for this is a field that's on the forms called "webinar opt-in form". When that box is checked, a triggered campaign makes our actual webinar opt-in field true. If the box is unchecked (ie, false), then the triggered campaign does nothing to the true subscription field.
Cheral_Jansen
Level 2
We're having a similar issue as Dory - I have a single checkbox on all webinar registration forms to encourage opt-in to our webinar invitations mailing list. If it's NOT checked, it posts a No back to Marketo, which overwrites a possible existing subscription in Marketo and SFDC. How so I stop the No post when the form is submitted with the checkbox empty?

Dory_Viscoglio
Level 10
This is slightly different, but Cathal, you mentioned that "As for having a checkbox that sends a value when it’s not checked, that’s not the normal way that HTML checkboxes work.  When you submit a HTML form, a checkbox doesn’t send a value if it’s not checked (see http://www.w3schools.com/jsref/prop_checkbox_value.asp)." But it seems like this isn't correct, because if a box is unchecked we are returning values of "false".

Is it possible for an unchecked checkbox to be ignored by Marketo? We have a newsletter subscription option on our forms, but it's unsubscribing people if the box is unchecked upon submission.

Anonymous
Not applicable
Once you change the field to checkbox, this field will toggle the label from left to right.
 0EM50000000RWNm.jpg
Michelle_Tizian
Level 10
So glad I found this thread! Cathal and Atara's suggestion definitely worked.  Is there a way to move the check box to the left of the field label?  
Anonymous
Not applicable
Is there a way to put the checkbox on either the right side or the left side of the label? It defaults to underneath the label. 
Anonymous
Not applicable
You're right, sorry, I tested this yesterday and I forgot about the space.
Atara_Rotenberg
Level 2
It does work though if you add a space " |Yes"!
Atara_Rotenberg
Level 2
Thanks for your suggestion, but the value |Yes in the advanced options box doesnt save. 
The checkbox just disappears
Anonymous
Not applicable
You need some value to be saved into the system. It can't be empty, there has to be either |Yes or |No, |Yes being to more likely.

When trying my steps dont edit anything in the 1st image in the top left, instead click the advanced options and edit the text there.
Atara_Rotenberg
Level 2
I am trying to replicate what you did in the first 2 boxes, but Marketo doesnt seem to save the information if there is no display value
Anonymous
Not applicable
The following will work for the T&Cs style single checkbox
Admittedly it could be more straightforward.
0EM50000000RPed.jpg


As for having a checkbox that sends a value when it’s not checked, that’s not the normal way that HTML checkboxes work.  When you submit a HTML form, a checkbox doesn’t send a value if it’s not checked (see http://www.w3schools.com/jsref/prop_checkbox_value.asp).    

If you need there to be a record of the lead’s choice, I think the best way to model that usage would be instead a radio button with two options, yes or no.  The radio will always send exactly one of its values 
Anonymous
Not applicable

I'll ask the question internally but my guess is that this was done to make the concept of a boolean field easier to understand.

There were many examples of people setting a checkbox field to required thinking that this meant leads filling out the form would have check it to accept T&Cs, then they would ask why the form was able to submit even though the field was left blank.

Anonymous
Not applicable
I am also looking for this option. I tried multiple ways but no luck. If you remove the option values, then single checkbox can be displayed but functionality will go off.

Please let us know if somebody has tried this.