SHARE
TWEET

Untitled

a guest Jul 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'gform_pre_render', 'add_notreadonly_script');
  2. function add_notreadonly_script( $form ) {
  3.     ?>
  4.     <script type="text/javascript">
  5.         jQuery(document).ready(function(){
  6.             jQuery("li.gf_notreadonly input").removeAttr("readonly");
  7.         }
  8.     </script>
  9.     <?php
  10.     return $form;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top