gravityflow_submit_button_text_user_input

Description

Use the filter gravityflow_submit_button_text_user_input to change the text of the submit button on the user input step. In order for this filter to have effect you must set Save Progress to Submit buttons on the step settings

Parameters

ParameterTypeDetails
$textStringThe text on the Submit button.
$form FormThe current form.
$stepStepThe current workflow step

Examples

Change the submit button label to “Submit Request”

add_filter( 'gravityflow_submit_button_text_user_input', 'sh_gravityflow_update_submit_button_text_user_input' ,10,3);
function sh_gravityflow_update_submit_button_text_user_input( $text,$form,$step ) {
	return "Submit Request";
}

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?