Forms 2.0 - change checkboxes | Community
Skip to main content
Level 2
January 29, 2014
Question

Forms 2.0 - change checkboxes

  • January 29, 2014
  • 16 replies
  • 4553 views
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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

16 replies

January 29, 2014
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.
January 29, 2014

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.

January 30, 2014
The following will work for the T&Cs style single checkbox
Admittedly it could be more straightforward.



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 
Level 2
January 30, 2014
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
January 30, 2014
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.
Level 2
January 30, 2014
Thanks for your suggestion, but the value |Yes in the advanced options box doesnt save. 
The checkbox just disappears
Level 2
January 30, 2014
It does work though if you add a space " |Yes"!
January 30, 2014
You're right, sorry, I tested this yesterday and I forgot about the space.
January 31, 2014
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. 
Michelle_Tizian
Level 10
February 21, 2014
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?