May 24, 2016

Gravity Forms API Functions

Gravity Forms API Functions

API Functions


https://www.gravityhelp.com/documentation/article/api-functions/#get_entries

Gravity Forms Hooks

gform_after_submission

Gravity Forms Notification/Email Hook

gform_notification

 

gform_pre_validation

function unrequire_fields( $form ) {
$ignore = array(1);
foreach( $form['fields'] as &$field ) {
if(in_array($field->id, $ignore)){
$field['isRequired'] = false;
}
}
add_filter( 'gform_pre_validation', 'unrequire_fields' );
Last updated: June 15, 2016