Gform editor js

Description

This action hook can be used to inject Javascript into the form editor page

Usage

<?php
add_action("gform_editor_js", "editor_script");
?>

Examples

This example injects an alert into form editor screen


<?php

add_action("gform_editor_js", "editor_script");
function editor_script(){
    ?>
    <script type='text/javascript'>
        alert('bingo!');
    </script>
    <?php
}
?>


Source Code

This filter is located in js.php

Search the Documentation