ri_gfdp_editor_script

The Gravity Forms Data Persistence Add-On Reloaded ri gfdp editor script function.

Description

ri_gfdp_editor_script(); 

Usage

  1. if ( !function_exists( 'ri_gfdp_editor_script' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-data-persistence-add-on-reloaded/gravity-forms-data-persistence-add-on-reloaded.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ri_gfdp_editor_script(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_gfdp_editor_script() { 
  2. ?> 
  3. <script type='text/javascript'> 
  4. //adding setting to fields of type "text" 
  5. //fieldSettings["text"] += ", .field_ri_gfdp_no_persist_setting"; 
  6.  
  7. //binding to the load field settings event to initialize the checkbox 
  8. jQuery(document).bind("gform_load_field_settings", function (event, field, form) { 
  9. jQuery("#ri_gfdp_no_persist").attr("checked", field["ri_gfdp_no_persist"] == true); 
  10. }); 
  11. </script> 
  12. <?php