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.

Link below submit button?

  1. Is there an easy way to add a link to a form BELOW the submit button?

    Title
    Description
    email_field: | FIELD |
    Submit Button
    *Link to Terms and conditions*

    Posted 11 years ago on Friday July 5, 2013 | Permalink
  2. Richard Vav
    Administrator

    Not from the form builder, you would have to add the link below the embed code.

    Regards,
    Richard

    Posted 11 years ago on Friday July 5, 2013 | Permalink
  3. Form is being inserted via a widget so adding it outside the form isn't ideal. Ill go digging for a hook to add it.

    Posted 11 years ago on Friday July 5, 2013 | Permalink
  4. David Peralty

    You can't add elements below the submit button in the form builder. You could add it before the submit button, or use a text widget in the widgets menu to add another widget below the form with the link to the terms. All my best!

    Posted 11 years ago on Friday July 5, 2013 | Permalink
  5. Richard Vav
    Administrator

    In that case you could use the gform_submit_button filter by adding something like this to your theme functions.php file

    // add link below submit button
    add_filter("gform_submit_button", "form_submit_button", 10, 2);
    function form_submit_button($button, $form){
        return "<button class='button' id='gform_submit_button_{$form["id"]}'><span>Submit</span></button><br><a href='http://mylink.com'>my link</a>";
    }
    Posted 11 years ago on Friday July 5, 2013 | Permalink
  6. That's exactly what I was trying to find. Well, I was hoping for a way in the form editor, but a hook will work just fine for this. Thanks.

    Posted 11 years ago on Friday July 5, 2013 | Permalink
  7. Richard Vav
    Administrator

    You're welcome

    Posted 11 years ago on Friday July 5, 2013 | Permalink

This topic has been resolved and has been closed to new replies.