This is a simple plugin that lets Gravity Forms users set a form field's attribute to either disabled or readonly.
Simply install the plugin and add the appropraite CSS class to the form field you want to assign an attribute. This is done within the Form Editor under the Advanced tab of the field. The classes are “disabled” for the disabled attribute and “readonly” for the readonly attribute (don’t include the quotation marks).
This section describes how to install the plugin and get it working.
Automatically
Manually
disable-gf-fields
to the /wp-content/plugins/
directoryOnce you’ve installed and activated the plugin, just add a the appropriate class to your field (“disabled” or “readonly”).
Both attributes set a field to be uneditable by the user. This means that the field will not accept any input from a user. However, there are a few important differences between the two attributes. Here’s a good overview of disabled vs. readonly attributes.
This plugin is very simple so it’s unlikely you’ll need support. If you do have any questions, feel free to email me.
$.prop()
instead of $.attr()
textarea
tagsinput
with the appropriate classes)