SOLVED

Re: Form creates line break between each label/field on mobile

Go to solution
Anonymous
Not applicable

Form creates line break between each label/field on mobile

Hi! I'm noticing an issue where my forms look perfect on desktop, but when switched to mobile each form label and form field gets broken into 2 lines instead of staying in 1 line as it normally does. Does anyone know how to fix this? 

Thanks,
Elaine
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Casey_Grimes
Level 10

Re: Form creates line break between each label/field on mobile

There are some specific media queries called in forms2.css that handle this behavior; simply add your own media queries to override Marketo's default behavior.

View solution in original post

5 REPLIES 5
Tim_Langlois1
Level 4

Re: Form creates line break between each label/field on mobile

Hi Elaine,

It's hard to say without seeing it, but edit your form and try changing the label position  to be above instead of left in your form settings. (Form Settings > Label Position field > select Above). If you already have labels above, you may need to reduce your form field width. 
Anonymous
Not applicable

Re: Form creates line break between each label/field on mobile

Hi Elaine

I undarstand your issue.
I try to fix it, but not yet.
I think it related to forms2.js and browser's user agent.
The issue is raised at iPhone and not raised at iPad.
See below

iPhone6 plus with iOS8.1
0EM50000000Sp3p.jpg

iPad with iOS8.1
0EM50000000Sp3u.jpg
Anonymous
Not applicable

Re: Form creates line break between each label/field on mobile

Takehiro, that's so interesting! Please let me know if you come up with a solution. I've tried fiddling around with field label and input margin, padding and width and nothing did the trick. Thanks! 
Casey_Grimes
Level 10

Re: Form creates line break between each label/field on mobile

There are some specific media queries called in forms2.css that handle this behavior; simply add your own media queries to override Marketo's default behavior.
Anonymous
Not applicable

Re: Form creates line break between each label/field on mobile

Thanks Courtney! That solved it!