Description
Use the gravityflow_feedback_message_user_input filter to change the text of the feedback message on the user input step.
Parameters
| Parameter | Type | Details |
|---|---|---|
| $parameters | String | The message to be displayed to the assignee when the detail page is redisplayed. |
| $new_status | String | The new status. |
| $assignee | Assignee | The assignee object. |
| $form | Form | The current form array. |
| $step | Step | The current step |
Examples
Change the message to for a specific step ID
1 2 3 4 5 6 7 8 | add_filter( 'gravityflow_feedback_message_user_input', 'sh_gravityflow_feedback_message_user_input', 10, 5 ); function sh_gravityflow_feedback_message_user_input( $feedback, $new_status, $assignee, $form, $step ) { if( $step->get_id() == '42' ) { return 'Thank you for your input to the delivery cycle program.'; } return $feedback; return ""; } |
Redirect the user to a different page upon successful completion of the step.
1 2 3 4 5 6 | add_filter( 'gravityflow_feedback_message_user_input', 'sh_gravityflow_feedback_message_user_input', 10, 5 ); function sh_gravityflow_feedback_message_user_input( $feedback, $new_status, $assignee, $form, $step ) { if ($form['id'] == '500') return $feedback;} |
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?