Title: Multiple Submit buttons
Last modified: March 25, 2019

---

# Multiple Submit buttons

 *  [rvmclaughlin](https://wordpress.org/support/users/rvmclaughlin/)
 * (@rvmclaughlin)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/multiple-submit-buttons-2/)
 * I have a multi page form that the user will be entering. I have it set up and
   it works. But I wanted to give them the option to save the record after the first
   screen instead of continuing. This way they can enter multiple beginning of the
   records. So the first screen would have the continue to next screen button and
   the additional one that would just say save and exit. I am using a custom signup
   to add the input button that takes me to the thank you page, thinking this would
   complete the session. But it does not work that way. It will go to the page but
   does not show the message that it was added and it does not add the record. What
   am I missing? How can I skip to the end and enter the record? Here is how I have
   added the button.
    <input type=”button” value=”Save and Exit” onclick=”location
   =’[https://otga.org/scorekeepertky'&#8221](https://otga.org/scorekeepertky&apos;&#8221);/
   >
 * Also, I keep reading that we can add a class to the button… any additional info
   on that would help. How do I find the class for the submit-button? Where is the
   class button-primary? I’m probably not speaking the correct terms.
    Thanks so
   much.

Viewing 1 replies (of 1 total)

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/multiple-submit-buttons-2/#post-11358705)
 * What is happening with your custom template is that your button to save and start
   another doesn’t submit the form before going to the other page.
 * You can do this with javascript: what you need to do is alter the value of the“
   thanks_page” hidden field in the form to point to your page that completes the
   submission, then submit the form (also with javascript).
 * As to the button class, there is a function in the template the prints the button:
 * `$this->print_submit_button('button-primary');`
 * That gives it the class ‘button_primary’ you can change that to whatever class
   name or names you want on the button.

Viewing 1 replies (of 1 total)

The topic ‘Multiple Submit buttons’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/multiple-submit-buttons-2/#post-11358705)
 * Status: not resolved