Description
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 | Details |
|---|---|---|
| $form | Form | The current form array. |
| $entry | Entry | The current entry array. |
| $step | Step or Boolean | The current step object for active workflow or false. |
Examples
Redirect the user to a field (URL) value instead of a specific step entry detail screen.
1 2 3 4 5 6 7 | 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 can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?