Gravity Perks: Read Only

Last Updated: July 26, 2019
Version: 1.3.8
Rating: 5.5
Developer: Gravity Perks
Documentation Link
Download Details

Product Description

Configure applicable form fields to be set to read-only state so that they are visible but not editable.
The Read Only perk allows you to configure applicable form fields to be set to a read-only state. Fields set to read only will be visible but not editable. In other words, the user can “read” the field value but can not change the field value. This is useful in situations where you would like to present information to the user without the user being able to modify that data. One such example is a Paragraph field (textarea) populated with your terms of service.

How do I enable this functionality?
The read-only setting can be enabled by navigating to the “Perks” tab on an applicable field and checking the “Read Only” checkbox.

Next, you will want to specify a default value for this field. To do so, navigate to the field’s “Advanced” tab and find the “Default Value” setting. Enter the desired value or select a merge tag by clicking the “Merge Tags” icon to the right of the field.

How does it work?
When the form loads, the Read Only checks for any field marked as read-only. When enabled, the “read-only” HTML attribute is appended to the input or textarea tag when the field markup is generated by Gravity Forms. The benefit of adding this directly to the form markup is that we do not need to rely on Javascript to append the “read-only” attribute after the form has rendered.

Change Log

Changelog for Gravity Perks: Read Only 1.3.8
Fixed conflict with Nested Forms where a fatal error was generated when fetching field that did not exist on the parent form.