It works now using this code. I don't know exactly why but it works. Instead of setting up styles within each form I added a dynamic css call to gvg-btn-formid. That way I can add individual styles to different butons. Before I was setting up a filter for each button as each button needed to be different (size, padding, etc.). This is more elegant.
// 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='btn btn-danger btn-flat gvf-btn-" . $form["id"] . "' id='gform_submit_button_{$form["id"]}'><span>" . $form["button"]["text"] . "</span></button>";
}
Posted 11 years ago on Friday May 10, 2013 |
Permalink