Hello, i was able to change the submit button class by adding this code to my theme's function file
add_filter("gform_submit_button", "form_submit_button", 10, 2);
// 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='fancy_button' id='form_submit_button_{$form["id"]}'><span>Continue to Payment</span></button>";
but when i tried to do the same for the Next and Previous buttons, [Multi Page buttons ] it didnt work,
here is the code i used,
add_filter("gform_next_button", "form_next_button", 10, 2);
add_filter("gform_previous_button", "form_previous_button", 10, 2);
// filter the Gravity Forms button type
add_filter("gform_next_button", "gform_next_button", 10, 2);
function form_next_button($button, $form){
return "<button class='fancy_button' id='form_next_button_{$form["id"]}'><span>Next</span></button>";
}
// filter the Gravity Forms button type
add_filter("gform_previous_button", "gform_previous_button", 10, 2);
function form_previous_button($button, $form){
return "<button class='fancy_button' id='form_previous_button_{$form["id"]}'><span>Previous</span></button>";
Help me :)