How to auto focus on tags drop down


I want to be able to autofocus on the ‘search box’ of the Dynamic tags field. So, when the page loads the user can immediately start to type into the box. This will allow them to tab through the page without having to click any fields.

Thanks a lot!

You will have to set focus to the input field yourself (using JavaScript). Note that the input field does not actually exist in the DOM until the Select2 is opened for the first time. You can open it programmatically and then use the following JavaScript to focus on the input field:

1 Like