Add a block of text to Gravity Forms

Problem: I would like to add a block of text that can’t be edited by the user but must be visible on Gravity Forms.

To add a block of text to Gravity Forms form you need to do 3 things.

  1. Create a html field
  2. Create a paragraph field
  3. Hide the paragraph field from user by making the visibility hidden or administrative

1. Create a html field

To create an html field you need to go in to “add field” and either click the html field or you can also drag-and-drop your html field onto the form. You can then enter the content you would like to add into the content area. You can add html to format your content as well.

2. Create a Paragraph Field

One issue we run into if we just create an html field is that the html field does not save when submitted. That means that whatever the user sees on the front end of the site will not be logged, this can be an issue with compliance or just accountability in general. One thing we can do to get around this is to create a paragraph field where we can input all the content from the html field.

3. Hide the paragraph field from user by making the visibility hidden or administrative

With just adding the new paragraph field this will default to being visible to the user, this will not be good because then we will have double content on the page as well as making this field editable. The one thing we can do to prevent this is to make the visibility of this field “Administrative”. This will hide the field from the user on the front end but also make it visible when saved.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *