Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created February 17, 2013 20:59
Show Gist options
  • Save WebEndevSnippets/4973429 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/4973429 to your computer and use it in GitHub Desktop.
Gravity Forms: Gravity Forms Read Only Fields (Multi-Part)
/************ Gravity Forms Read Only Fields (Multi-Part) ************/
// wpenqueue this file
jQuery(document).ready(function(){
jQuery(document).bind('gform_page_loaded', function(){
jQuery("li.gfield.readonly input").attr("readonly","readonly");
jQuery("li.gfield.gf_readonly textarea").attr("readonly","readonly");
});
});
@magdale76
Copy link

Hi there...can you tell me how use it please? thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment