Hello.
In a search grid form SC generates automatically a button “clean form” to clear all search fields.
How can I set a focus on a specific field after the form has been cleared ?
I have tried to put this script on InitEvent:
echo "<script>document.addEventListener('DOMContentLoaded', function() {document.getElementById('SC_codiceattrezzatura').focus();}, false);</script>";
but it works only when the search form is loaded for the first time and does not work after the form has been cleared.