By default, GF sections and respective sub-fields are not structured or identified in the HTML as you would expect.
This helps group all the sections into <section>
fields as well as allow you to create columns based on these sections.
You may need modify the CSS to your needs.
Simply add the gform_sections
class to the form's "CSS Class Name".
If you have fields at the bottom of the form or elsewhere that you do not want contained in a section,
you may add the gfield_sectionless
class to that particular field.
- 2 Columns:
gform_columns--2
I had a need to change the order of the sections in a Z-pattern.
Add a -z
to the end of the class to the form to enable this (e.g., gform_columns--2-z
).
MIT License
Copyright 2025 Brennan Goewert
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.