MX Kommerce Forum :: Throw Error not stopping form
This thread was displayed: 65 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Andrew Renk
02-07-2007 05:27:47 GMT +2
|
Hi, I have a form:
http://www.csgregistration.com/
I've added a throw error trigger to stop any transaction where the arrival date is equal to 06/07/2007. I think I have my logic set-up correctly but for some reason it's not stopping the form when I select 06/07/2007 from the date picker.
What am I doing wrong?
|
|
|
Razvan Racasanu[InterAKT]
02-07-2007 12:40:23 GMT +2
|
Hello,
In the condition you should specify the date in the database format and not screen format, so the condition should look like this:
"{arrivaledate} = ""2007-07-06"""
Regards,
Razvan RACASANU
|
|
|
Andrew Renk
02-07-2007 17:13:10 GMT +2
|
Hi Razvan,
I tried that and it still didnt work.
Andy
|
|
|
Razvan Racasanu[InterAKT]
02-08-2007 13:43:55 GMT +2
|
Hello,
Please try with the attached file. If this is not working, please post in a private message FTP connection details so we can try and find the problem.
Regards,
Razvan RACASANU
|
|
|
Razvan Racasanu[InterAKT]
02-12-2007 15:22:41 GMT +2
|
Hello,
Because you have the db date format set to mm/dd/yyyy, this is what should have been in the condition, but it did not work because you have set this trigger as ERROR instead of BEFORE. I have changed the code and now it should work.
Regards,
Razvan RACASANU
|
|
|
Andrew Renk
02-12-2007 17:07:53 GMT +2
|
Razvan, that was it! Thank you!
|
|
|