Advanced Marketo Form Techniques Part 2

Customize your Marketo forms even more by using these 3 advanced Marketo form techniques. Learn how to show a thank you message after a form submission, how to limit word count on text fields and how to block free email addresses from form submissions.

This is part 2 of the advanced Marketo form techniques series. View part 1.

Show a thank you message after form submission

This snippet will show a thank you message after a successful form submission, instead of redirecting to a thank you page.

Add this piece of javascript code to your page:

Add this HTML code where you want the thank you message to display on the page:



Limit word count for a textarea & display the # of words left

Limit the number of words a user can input in a text field or textarea with this script.

marketo-textarea-limit-word-count-2

Add this HTML to the label in your form.

marketo-textarea-limit-word-count

Add this piece of javascript to your landing page. Change #comments to the name of your field and update 250 to the number of words you want to limit the field to.



Block free email addresses from filling out a form

Block @gmail, @yahoo.com, @hotmail.com, @live.com, @aol.com and @outlook.com email addresses from filing out a form and require a business email address by adding this script to your landing page.

Source: Marketo Developer Blog

Questions?

Email me, send me a tweet @jennamolby, or leave a comment