Expand my Community achievements bar.

2 Submit Buttons --- doesn't process form

Avatar

Level 2

I previously was utilizing one button and the cancelAction command. However, this was causing the form to be submitted when used in the preSubmit event.

I have recently implemented a 2 submit button solution to a form, which works beautifly for validation. All my edits are executed when they are suppose to be. However, now the form does not submit. When I click the complete button, noting happens.

I have regular button name Validate, where I do all of my edit checks, and it calls the click event of a submit button, Button1, if all edits pass. I use the command Button1.execEvent("click");

The click event of Button1 is greyed out, not sure if that is an issue.

Has anyone ever encountered this before?

1 Reply

Avatar

Level 10

Hi,

I am guessing that you have used a submit by email button, which automates the submit process. As a result it does not have a click event. I would recommend using a regular button with script in its click event that will do the submit. There are examples of single button submit here, which you should be able to adapt for your hidden submit/regular button: http://assure.ly/eUR4wJ.

Hope that helps,

Niall