How can we help?

Cursor focus on email field

Overview

Follow these steps to have the visitor's cursor automatically focus on the email field after your lightbox is launched.

Steps

1. Log into Web Forms and click your name in the upper right-hand corner. Then select Custom Javascript (Boxes) from the drop-down menu.

custom-js-boxes.png

2. On the next page, click the Add New Custom JavaScript Snippet button.

new-js-snippet.png

3. Set the event trigger for your new snippet of javascript to After Display.

4. Paste this JavaScript code into the box. 

form_input_email.focus()

Comments

0 comments

Please sign in to leave a comment.