Hello all,
I am trying to create a Form 2.0 which actually have multi-column field set instead of multi-row field sets. As far as I can see, its just possible to put field sets like a ladder (top-down) but not side by side. Can someone guide me through if its possible at all or not?
Regards,
Swati
Solved! Go to Solution.
Forms 2.0 fieldsets do support horizontal layout. Drag your fields inside the fieldset to create columns.
Like this:
Thanks Sanford and Frank for your reply, but the solution you have suggested is for multi-column fields in the same fieldset, wherein I want to arrange two fieldsets horizontally. Like as follows:
OK, "multi-column field set" didn't really describe that. Perhaps "side-by-side fieldsets" would have been clear (of course it now is clear because of the screenshot).
This layout is of course possible, too, but you will need to use CSS to float the 'sets.
Surely it was confusing with "field sets and fields" but I tried my best to describe in words.
Good to hear that its possible with CSS atleast, can you help me with some example code?
You could try CSS like this:
.mktoForm { width: 1200px !important; }
.mktoForm .mktoFormRow { clear: none !important; float: left !important; display: inline !important; }
.mktoButtonRow { clear: both !important; float: left !important; }
This is only for the Desktop view, you will need to rework your media query code too.
Thanks Frank, seems not to be working.
I have placed the code into form's custom CSS, but still it didn't work. Any other workaround?
Do you have the page url, depending on your form settings, the css may differ.
There is no form settings inside landing page except this: <div class="mktoForm" id="exampleForm" mktoname="Example Form"></div>
The form settings looks like this after I have added the code:
#mktoStyleLoaded {
/* css load detection, do not remove */
color:#123456;
}
.mktoForm fieldset {}
.mktoForm fieldset legend{}
.mktoForm input[type=text],
.mktoForm input[type=url],
.mktoForm input[type=email],
.mktoForm input[type=tel],
.mktoForm input[type=number],
.mktoForm input[type=date]{}
.mktoForm input[type=text],
.mktoForm input[type=url],
.mktoForm input[type=email],
.mktoForm input[type=tel],
.mktoForm input[type=number],
.mktoForm input[type=date],
.mktoForm textarea.mktoField,
.mktoForm select.mktoField {
padding:2px 3px; }
.mktoForm input[type=text]:focus,
.mktoForm input[type=url]:focus,
.mktoForm input[type=email]:focus,
.mktoForm input[type=tel]:focus,
.mktoForm input[type=number]:focus,
.mktoForm input[type=date]:focus,
.mktoForm select.mktoField:focus,
.mktoForm textarea.mktoField:focus{}
.mktoForm { width: 1000px ; }
.mktoFormRow { clear: none ; float: left ; display: inline ; }
.mktoButtonRow { clear: both ; float: left ; }
I hope I have put it correctly there?