(→Form Submission) |
(→Form Submission) |
||
| Line 11: | Line 11: | ||
The following filters can be used to manipulate the form data before the form gets displayed to the screen. Tasks such as adding drop down items dynamically or pre-populating field values can be accomplished using them. | The following filters can be used to manipulate the form data before the form gets displayed to the screen. Tasks such as adding drop down items dynamically or pre-populating field values can be accomplished using them. | ||
| - | * [[ | + | * [[gform_user_registration_validation]] |
| - | *: Used to | + | *: Used to validate Gravity Form submissions that have a User Registration feed attached. |
| - | + | ||
| - | + | ||
| - | + | ||
* [[gform_user_registered]] | * [[gform_user_registered]] | ||
*: Fires after the user has been registered and passes the user id of the newly created user, the User Registration config meta and Gravity Form entry used to create the user. | *: Fires after the user has been registered and passes the user id of the newly created user, the User Registration config meta and Gravity Form entry used to create the user. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
=== Administration === | === Administration === | ||
Revision as of 16:59, 17 February 2011
Contents |
Introduction
The User Registration provides an assortment of hooks that can be used to modify the default functionality or extend it.
Hooks and Filters
Following is a list of available hooks and filters.
Form Submission
The following filters can be used to manipulate the form data before the form gets displayed to the screen. Tasks such as adding drop down items dynamically or pre-populating field values can be accomplished using them.
- gform_user_registration_validation
- Used to validate Gravity Form submissions that have a User Registration feed attached.
- gform_user_registered
- Fires after the user has been registered and passes the user id of the newly created user, the User Registration config meta and Gravity Form entry used to create the user.
Administration
The following filters are fired within the Gravity Forms administration allowing the customization of certain elements.
- gform_add_field_buttons
- Use this filter to add/remove field type buttons to the form editor screen
Javascript
The following events are fired via jQuery and allow custom client side scripts to be executed.
- gform_page_loaded
- Fires on multi-page forms when changing pages (i.e. going to the next or previous page)
Role Management
Gravity Forms introduces new capabilities to the WordPress Role system. For more information, check out the Role Management page.
Samples
Following are some samples on using Gravity Forms' hooks to modify/extend Gravity Forms functionality.