Re: How do I create "headings" for section of checkboxes without them becoming field values?

Anonymous
Not applicable

How do I create "headings" for section of checkboxes without them becoming field values?

I have a field in a form which are checkboxes. I want to separate the checkboxes into sections headed by a title for each section.

Well unfortunately, the "titles" for each section are automatically treated by Marketo as field values, with a checkbox beside it.

IS THERE ANY WAY I CAN GO INTO ADVANCED EDITOR AND DESIGNATE THESE HEADINGS SO THEY DON'T GET CALLED A FIELD???????

I have looked and looked through Marketo and, it is like a big mystery to get ANY ANSWER TO THIS.

Thanks. Sorry, I am a little frustrated.

Matt.

16 REPLIES 16
SanfordWhiteman
Level 10 - Community Moderator

Re: How do I create "headings" for section of checkboxes without them becoming field values?

What you're doing right now isn't exactly clear. But it sounds like you want a fieldset, then drag the checkboxes into the 'set. A fieldset is semantically "a group of related fields," not necessarily mutually exclusive but related, thus akin to a "section."

Anonymous
Not applicable

Re: How do I create "headings" for section of checkboxes without them becoming field values?

Hi Sanford,

The Fieldset is not helping.

What I have, is a single field, called "product of Interest". It has numerous checkbox values to choose from. I want to separate these checkbox values into groups with a heading atop each group. The problem is, I can't include a heading, without the heading also becoming a checkbox value. How the heck do I put in a text value without it automatically getting changed into a dog-gone checkbox???? Or is Marketo that limited? The attached image is an example of what I want it to look like. Is there anyone who can answer this? Or is the answer "It is impossible in Marketo"? Thanks!

product_Interest_checkboxes.jpg

Alok_Ramsisaria
Level 10

Re: How do I create "headings" for section of checkboxes without them becoming field values?

You can achieve this by writing custom js. Add a progressive class with every checkbox and then add the text using before or after event on particular class. Here is the sample code to add the progressive class on the checkbox   MktoForms2.whenReady(function (form){     var class_count = 1;     $("input[type='checkbox']").each(function(){     $(this).addClass("label"+class_count );     class_count ++;   });

Anonymous
Not applicable

Re: How do I create "headings" for section of checkboxes without them becoming field values?

Alok, where does one put this javascript? The advanced editor in the form doesn't let me add anything...it will just create another dang checkbox out of anything I put into it. Please see screenshot attached. I was hoping, I could just add some HTML or other code, that would tell the dang Marketo system that "no, I don't want a checkbox this time, I just want a headline!!!!!!!". But no, anything I put in there above "AlphaImager EC"... it will add a | and repeat it, and create another dang checkbox. In the form itself, there does not seem to be anywhere I can put any script. So is there some way I can accomplish this without having to obtain a pHD in computer science? Thanks you guys. Pulling my hair out on a simple issue.

checkbox_editor.JPG

Alok_Ramsisaria
Level 10

Re: How do I create "headings" for section of checkboxes without them becoming field values?

You can add this script on the LP in an HTML editor, There is no other way in marketo to accomplish your requirement without the custom code.

Anonymous
Not applicable

Re: How do I create "headings" for section of checkboxes without them becoming field values?

Can you use the Rich Text option? When you add a new field click the Rich text button, here you can add your titles and place them in the form where you want just like you can with a field.

Add a Rich Text to a Form - Marketo Docs - Product Docs

Julz_James
Level 10

Re: How do I create "headings" for section of checkboxes without them becoming field values?

That is exactly what I do Cathal, just add rich text above each section you want to separate.

Anonymous
Not applicable

Re: How do I create "headings" for section of checkboxes without them becoming field values?

I've tried that, but in Mobile, it takes all of the Rich Text titles away and lists them at the bottom of the form.

Also, when I try to iFrame the form onto an external web page, it does the same. It removes the headings and repositions them all together at the bottom of the checkbox list :-(.

See attached.

checkboxes_mobile.JPG

Julz_James
Level 10

Re: How do I create "headings" for section of checkboxes without them becoming field values?

How about setting up different field sets with different titles but the same 'Field' and split the check boxes that way?  Would that work?