Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

Metastorm BPM forums
Sign up Latest Topics

  Author   Comment  

New Member
Posts: 9
Reply with quote  #1 
I have a button that checks the database for existing data, I want to stop commit if this button is not clicked. I used a javascript routine to check, it is called on On Form Submission.

It does validate but GRAYs out the submit button once validated.

Also I want to be able to stop submit or commit this same form, if an item has been selected from a dropdown control, the next text box MUST be completed.

All my javascript efforts has not be able to achieve this two validations on the same form.

Please point me to an example or reference I could read up.

Thanks in advance.


Avatar / Picture

Posts: 5,507
Reply with quote  #2 
If you are cheking the database with some code/SQL, you can stop submission by setting %User.Error to anything at all. That message will be delivered to the user. Be aware that in some versions date fields may not be filled when the form reloads, so try it first.

If you are checking the form itself, you can use a client script on submit. Returning false (or nothing - be sure you do return) will prevent submission, returning true will submit.

Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
Previous Topic | Next Topic

Quick Navigation:

Create your own forum with Website Toolbox!