Expand my Community achievements bar.

No submit button on form, getting "Submit Cancelled" error on mouse click in field (but not tab in or out of field)

Avatar

Level 3

I had some mandatory fields on my form. I also have script on a button that checks for mandatory fields, highlights them if empty, and displays an error message telling the user to go complete the field(s). The user clicks the button again once the fields are complete, and the highlighting is removed.

I have about a million versions of this form as we tweak various things, and suddenly the system highlighting for the mandatory fields was interfering in the middle of completing the form. This form is completed in sections by different people, so I don't want the error/highlighting appearing until the final user thinks the form is complete, and is checking it by clicking the check form button before it is emailed.

I'm not using a submit button for the email because we use Gmail, and the email submit button doesn't work for Gmail. I have instructions on the form telling the user to attach the final, saved version (I do have a save button) to an email to a specific email address to submit it.

I made the mandatory fields optional again, and the system highlighting is gone now. That's what I wanted, perfect.

However ...

In one specific location on the form, when you move from text Field A into text Field B by tabbing through fields (both in and out of Field B), it works fine. No errors. But if you enter text in Field A and then try to use your mouse to enter Field B, you get the "Submit Cancelled" error. You can click "ok" and keep going, but it's going to really throw users for a loop and I need to get rid of it.

I've looked through scripts and XML and I can't find a preSubmit or Submit command. I've checked to be sure all the fields (even hidden fields) are optional. I've checked all the buttons on the form to be sure I didn't accidentally make one a Submit button.

Any other suggestions?

0 Replies