Version 1.9.3.2 is now live for both Advanced Forms and Advanced Forms Pro. This is a small release, but it introduces two new action hooks that allow you to add custom markup before and after a field group renders in a form.
New Action Hooks
We’ve added the af/field_group/before_field_group
and af/field_group/after_field_group
action hooks. These hooks allow you to add custom markup before and after field groups, giving you more control over the structure and appearance of your forms.
Here’s an example of how you can use these hooks to add a wrapping div around a field group:
In the above example, the af/field_group/before_field_group
hook is used to open a div and add a paragraph before the field group. The af/field_group/after_field_group
hook is used to add a closing paragraph and close the div after the field group.
Changelog
- Added the
af/field_group/before_field_group
action hook to support custom markup before field groups. - Added the
af/field_group/after_field_group
action hook to support custom markup after field groups.
We hope these new hooks will provide you with additional flexibility when designing your forms. As always, we’re here to help if you have any questions or need assistance. Happy form building!