PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Read Only Form Field

  1. marcusk
    Member

    Hi, is there any option/method to make the form field read only? Reason being, I have default value in the field, and do not want users to change the value.

    Posted 12 years ago on Monday October 29, 2012 | Permalink
  2. Please see this post by developer David Smith:
    http://www.gravityhelp.com/forums/topic/read-only-fields-1#post-51502

    Here is the code:
    http://pastie.org/3536412

    You add a custom CSS class to any field you want to make read only, then this JavaScript snippet changes those fields to read only when the form is rendered.

    Posted 12 years ago on Monday October 29, 2012 | Permalink