Documentation

gform_editor_js

  1. Description
  2. Usage
  3. Examples
  4. Source Code


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