Skip to content

Commit

Permalink
Gravity Forms: fix submit button with conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomollet committed Jul 26, 2017
1 parent 084e3e6 commit db1828e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions inc/plugins/gravityforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ function stormbringer_gform_field_css_class($classes, $field, $form)
}
add_action('gform_field_css_class', 'stormbringer_gform_field_css_class', 10, 3);

// This filter is executed when the form is displayed and can be used to completely
//change the form button tag (i.e. <input type="submit">).

/**
* Gravity Forms Submit Button
*
* @param $button
* @param $form
*
* @return mixed|string
*/
function stormbringer_gform_submit_button($button, $form)
{
//$button = str_replace('<input type=\'submit\' ','<button ', $button);
Expand Down

0 comments on commit db1828e

Please sign in to comment.