WordPress: Gravity Forms replace Submit Input

// filter the Gravity Forms button type add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 ); function form_submit_button( $button, $form ) { return "<button class='button gform_submit_button' id='gform_submit_button_{$form['id']}'><span>{$form['button']['text']}</span></button>"; }
Replace the submit input with a button.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.