I’m developing a custom module and have a ‘Select’ settings field. I am trying to call a parsing function when the ‘Select’ field is clicked by using an onclick rule in the rules set by .validate() in JavaScript.
The problem I’m having is when I click on the Select field it does nothing but when I cause the select field to lose focus it works. It seems like the onclick rule works exactly the same as the onfocuslost. Can you please help?
I’m terribly sorry, I have discovered how to accomplish this. I ran the function in the settings.js file (using $(’.fl-builder-content’).on(‘fl-builder.preview-rendered’, function () { parseFunction(); }) as specified in your docs.