//———————————————————- //—— JAVASCRIPT HOOK FUNCTIONS FOR GRAVITY FORMS ——- //———————————————————- if ( ! gform ) { document.addEventListener( ‘gform_main_scripts_loaded’, function() { gform.scriptsLoaded = true; } ); window.addEventListener( ‘DOMContentLoaded’, function() { gform.domLoaded = true; } ); var gform = { domLoaded: false, scriptsLoaded: false, initializeOnLoaded: function( fn ) { if ( gform.domLoaded && gform.scriptsLoaded ) { fn();…