Skip to content

Instantly share code, notes, and snippets.

@chrisegg
Last active February 11, 2022 17:32
Show Gist options
  • Save chrisegg/bf1b8235fb711a6085e13717c682c9ed to your computer and use it in GitHub Desktop.
Save chrisegg/bf1b8235fb711a6085e13717c682c9ed to your computer and use it in GitHub Desktop.
// @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