Hi, I hope it’s ok I reply on this post, not sure if I should start a new topic or not, but I got a question about MakeForm.
First of all, MakeForm is very handy! I’ve got it working almost perfectly. There is just a small thing: when someone enters a value that’s already in the database and has to be unique, I get the following error:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Duplicate entry '9477' for key 2 »
SQL: INSERT INTO actiecodes_overzicht (actiecode,naam,prijs_id,toegevoegd) VALUES('9477','test',1,'2009-05-03 13:53:44')
I want to create my own error message so that if this happens the user can go back and correct his mistake. I just don’t know how I should do this. Probably somewhere in the makeForm class?