Conditional Logic Button Text

Is it possible to display different text on the submit button depending on selections in the form?

For example, I have a Gravity Flow edit entry step that loops continuously until a checkbox is selected. When the checkbox is selected the workflow is ended.

So, whilst it’s in loop mode the button would say “Save” then when the checkbox is selected it would say “Submit”

Best wishes
Mat

1 Like

Hello,

The save and submit buttons within the user input step of Gravity Flow do have filters that let them be modified based on custom logic. See gravityflow_save_progress_button_text_user_input as example. If your goal is that within a particular step submission the button text change from save to submit based on value, you would want to look at javascript and the gform_enqueue_scripts function that Forms provides (which Flow also supports use of).

Cheers,
Jamie

2 Likes