Gravity Forms API Functions
https://www.gravityhelp.com/documentation/article/api-functions/
https://www.gravityhelp.com/documentation/article/api-functions/#get_entries
Gravity Forms Hooks
https://www.gravityhelp.com/documentation/article/gform_after_submission/
Gravity Forms Notification/Email Hook
https://www.gravityhelp.com/documentation/article/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