Articles

Getting Forms with the GFAPI

The GFAPI includes methods that can be used to get and check if forms exist.

Deleting Forms with the GFAPI

The GFAPI::delete_form() and GFAPI::delete_forms() methods are used to delete forms.

Submitting Forms with the GFAPI

The GFAPI::submit_form() method is used to create an entry by sending input values through the complete form submission process.

Validating Form Submissions with the GFAPI

The GFAPI::validate_form() method, added in Gravity Forms 2.6.3.2, is used to validate the form input values. If the form passes validation the configured anti-spam checks will also be performed.

Creating Entries with the GFAPI

The GFAPI::add_entry() and GFAPI::add_entries() methods are used to add entries directly to the database.

Updating Entries with the GFAPI

The GFAPI::update_entry(), GFAPI::update_entries(), GFAPI::update_entry_property(), and GFAPI::update_entry_field() methods are used to update entries in the database.

Searching and Getting Entries with the GFAPI

The GFAPI::entry_exists(), GFAPI::get_entry(), GFAPI::get_entries(), GFAPI::get_entry_ids(), and GFAPI::count_entries() methods are used to search, count, get, and check if entries exist.

Deleting Entries with the GFAPI

The GFAPI::delete_entry() method is used to permanently delete an entry.

Managing Add-On Feeds with the GFAPI

The GFAPI includes methods which are used to manage form Feeds, the properties which determine if and how form submissions are processed by an add-on.

Sending Notifications with the GFAPI

The GFAPI::send_notifications() method is used to send notifications for a specific event and the given form and entry.