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*
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*
Not from the form builder, you would have to add the link below the embed code.
Regards,
Richard
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.
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!
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>";
}
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.
You're welcome