Skip to content

Instantly share code, notes, and snippets.

@chrisegg
Last active August 18, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisegg/c9a6b650fd96c82c9d66e808a4e7ff0f to your computer and use it in GitHub Desktop.
Save chrisegg/c9a6b650fd96c82c9d66e808a4e7ff0f to your computer and use it in GitHub Desktop.
This code snippet works for text input fields only and can be placed in an HTML field within your form.
<script type="text/javascript">
jQuery(document).ready(function(){
/* apply only to a input with a class of gf_readonly */
jQuery(".gf_readonly input").attr("readonly","readonly");
});
</script>
@chrisegg
Copy link
Author

chrisegg commented Aug 18, 2021

You can find additional code snippets here: https://gravityranger.com/click/readonly-snippets/git

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