Jump to content
  • 0

Two SUBMIT buttons?



On the last page of the Web Form Wizard for a Submission Form, we can set the “Destination after record submit:” — return to the same page, go to another DataPage, etc.

How could I create two SUBMIT buttons? One would return the user to the same page. The other would Submit the data for the current form and then take the user to another DataPage.



Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @JohnM, this should be possible through some HTML and CSS.

First, hide your original submit button by pasting the CSS code below in your Footer. Also, your destination after record submit should be 'Same form'.

.cbSubmitButton {
 display: none !important;

Then, add an HTML block after the last field then paste the code below. Make sure to click the Source button before pasting. These codes will create the 2 buttons. Just replace the URL values with the URL of your submission form and other DataPage you want your user to be redirected after submit.

<input class="cbUpdateButton" name="Submit" onclick="window.location.href = 'Submission_URL';" type="submit" value="Submit" /> 

<input class="cbUpdateButton" name="Submit" onclick="window.location.href = 'OtherDataPage_URL';" type="submit" value="New Page" />


You will notice that I used the class for Update button since we already hide the original submit button using its class and I did this to replicate the style of original submit button.


Here is my sample submission form: https://c0hcv332.caspio.com/dp/3b439000aa65d001578a4bfb965d

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...