Plugin to Disable Gravity Forms Fields
This very simple plugin allows Gravity Forms users to disable (“grey out” or make “read only”) form fields by adding a CSS class name of “disabled” to the field under the Advanced tab or set a field to the readonly attribute with a class of “readonly”.
While working on a client project, I needed to create a form in Gravity Forms that included a “Today’s Date” field. This field was needed as part of an acknowledgement section that contained a clause stating that the person submitting the form agreed that payment would be due within 30 days of the day of submission. I used a Gravity Forms Date field with the current date as a pre-populated value and everything was good. However, it didn’t make sense to allow the user to change that date, especially since the user is agreeing to payment terms that that are dependent on the date of submission. Letting users change the date could lead to abuse and no one wants that. Therefore, I felt it was a good idea to disable the “Today’s Date” field, essentially locking in the date and not permitting the user to change it.