PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Changing button class

  1. clarkson
    Member

    Hello, i want to use my theme button class instead of the form button class, is there anyway to change the button class of the form?

    Posted 12 years ago on Wednesday September 21, 2011 | Permalink
  2. you can use this filter to change the markup..

    http://www.gravityhelp.com/documentation/page/Gform_submit_button

    but it may be easier to simply to simply target the button with a new CSS rule and apply the same properties to the existing class as your current theme button class.

    [css]
    body .gform_wrapper .gform_footer input[type=submit] {border:1px solid red}
    Posted 12 years ago on Wednesday September 21, 2011 | Permalink
  3. clarkson
    Member

    what about the next and previous buttons? [ steps page]

    Posted 12 years ago on Wednesday September 21, 2011 | Permalink
  4. There's currently not a filter to change the markup on those.. you would need to use new CSS rules to make changes.

    [css]
    body .gform_wrapper .gform_body .gform_page_footer .gform_next_button {
    	border: 1px solid red
    }
    body .gform_wrapper .gform_body .gform_page_footer .gform_previous_button {
    	border: 1px solid red
    }

    http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples

    Posted 12 years ago on Wednesday September 21, 2011 | Permalink