Changes to markup in Gravity Forms 2.5

Changes to markup in Gravity Forms 2.5

IntroductionMarkup Changes in 2.5Sample

Introduction

Gravity Forms 2.5 introduced significant updates to the markup used. Changes were made to modernize and improve the markup for better standardization and accessibility, as well as simplifying the styles used. These can create breaking changes on existing forms. Note that all existing forms will default to Enable Legacy Markup on, meaning that the new markup changes listed here will not be in effect for those forms. If you do choose to turn that off and use the new markup, review and test first!

To test your existing forms and their presentation under the new markup (if needed), we suggest you install 2.5 on one of your sandboxes, turn off legacy markup on your existing forms, and start checking under all your normal user conditions. There is no substitute for grunt-work QA in this scenario.

Markup Changes in 2.5

This list is a good starting point for changes that have been made. It may not be exhaustive, with possible changes as we progress through the Beta releases.

All fields are now wrapped with either a

or a

. We no longer wrap fields in

  • .All multi-input fields (such as Address, Name, Checkboxes, etc) are now wrapped in a
    (previously were

    ) for improved accessibility.Field labels inside a

    use

    (previously were