Skip to content

Instantly share code, notes, and snippets.

@chrisegg
Last active Feb 11, 2022
Embed
What would you like to do?
// @credits https://docs.gravityforms.com/adding-an-inline-submit-button-in-gravity-forms-2-5/
// You will need to replace 123 in gform_submit_button_123 and gform_wrapper_123 with your forms ID number
// Copy everything below this line.
<div>
<button onclick="document.getElementById('gform_submit_button_123').click();" style="height: 2.5rem;padding:0 1rem;font-size:1rem;">
Submit
</button>
</div>
<style type="text/css">
#gform_wrapper_123 .gform_footer { visibility: hidden; position: absolute; left: -100vw; }
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment