SOLVED

How do you get labels inside the form field?

Go to solution
Anonymous
Not applicable

How do you get labels inside the form field?

How do you get labels inside the actual field? It's much cleaner and takes up less space on the landing page.
Like this: 
0EM50000000QnpX.jpg
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: How do you get labels inside the form field?

There isn't an out of the box capability for doing this in the form designer, but there is a good discussion of ways to do this using html at http://stackoverflow.com/questions/781473/how-to-create-a-label-inside-an-input-element

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Re: How do you get labels inside the form field?

There isn't an out of the box capability for doing this in the form designer, but there is a good discussion of ways to do this using html at http://stackoverflow.com/questions/781473/how-to-create-a-label-inside-an-input-element
Anonymous
Not applicable

Re: How do you get labels inside the form field?

I believe you will need to do this with custom java and a non-marketo form.
Anonymous
Not applicable

Re: How do you get labels inside the form field?

That's too bad. Thanks for that info Elliott. I'll have to see how scalable it is. The last thing I want to do is make it difficult for everyone on my team to roll out landing pages/forms. 
Anonymous
Not applicable

Re: How do you get labels inside the form field?

Louis:

I actually wrote an article on this a while ago with a how-to (link here)! I was having the same design challenge for our own landing pages. 

The JavaScript there takes the "Instructions" field on each input field and makes a new HTML5 "placeholder" property for the input field. Then you throw in an HTML5 Placeholder shiv of your choosing (example included) so that it works for all browsers. I found this is the best way to do it for Marketo, for all the reasons described in that article.

You can see an example of the final result on any of Yesler's landing pages (this recent webinar one, for example).

Let me know what you think! 


Best,
Edward Unthank
SEO/Web Specialist
Yesler