I have a WordPress plugin for gravity form and i have created a form and want to embed custom logic on the forms field
What is the best and upgrade safe way to bind the focus event in JavaScript on form field. I want to show some html when the field is focused or clicked by user.
Expectation is that it should work on all field types and should be a upgrade safe approach.
Have you tried any JS code? You can add a trigger to see if the specific form or field is loaded, and then the logic should be trigger so code will work.
If you’re having any issue, please share the code, and form (upload in a file hosting site and share the link), so I can test in my sandbox to confirm.