Cursor focus on email field – Cordial Knowledge Base

How can we help?

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.

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

  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()