gravityflow_entry_detail
The gravityflow_entry_detail action allows custom markup to be added directly below the grid of field(s) on the entry detail screen.
Parameters
Parameter | Type | Definition |
---|---|---|
$form | Array | The current form array. |
$entry | Array | The current entry array. |
$step | Gravity_Flow_Step|false | The current step object for active workflow |
Examples
Example 1 - Redirect user to a field (URL) value instead of a specific step entry detail screen.
add_action( 'gravityflow_entry_detail', 'jo_gravityflow_entry_detail_redirect', 10, 3 ); function sh_gravityflow_feedback_message_user_input( $form, $entry, $step ) { //Adjust the 500, 125 and 4 to match your form, step and field IDs. if ( $form['id'] == '500' && $step->get_id() == '125' ) { echo '<script>window.location = "' . $entry['4'] . '";</script>'; } }
Placement
This code should be placed in the functions.php file of your active theme or in a custom functions plugin.