Grouping multiple fields under one container in frontend can be useful if you want to give a background color or put a border around those fields. It helps you create visual segments of your form which is easy on the eyes.
Consider you are asking for personal and professional details of a user in the form. What if you give a separate background color to the personal details section and professional details section. It will add a clear division between the two sections.
Gravity forms do have a Section field but it doesn’t divide the form into two separate sections with a container in frontend. Instead, it is only for applying conditional logic to a group of fields and showing a heading in frontend. Although this is good for most purposes however having fields under one container is also one of the most desired feature.
Plugins required to Group Fields
Steps to Group Gravity Forms fields under a container in Frontend
- After you have installed both the required plugins then open the form editor.
- Now go to Grid Layout from the editor menu.

- Check the Enable Grid Layout option.
- Here you will get the visual layout of your fields. You can now divide your form into multiple columns and put them together in one column using a drag and drop interface.

- Now click on the Save button to make the changes live.
- All the fields you added together in a column will now have a single parent in frontend. Each column will have its own id to which you can add custom CSS and design it.
- If you want then we can do custom CSS code for you and make your forms look the way you like.
If you have any queries regarding the above tutorial then leave a comment below and we will get back to you with a solution to your query.



0 Comments