HOWTO? autofocus input field | WordPress.org

[ad_1]

Hi there,

You would have to use custom JS codes to add the “autofocus” attribute to a form input field.

Here is an example snippet:

document.getElementById("ff_121_email").focus();

You can add the code in the custom JS section of your Form (see this screenshot: https://prnt.sc/TBQqQz_sFoET). This code is for an email field, so you can change the ID and set it to any field that you want.

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer