Forums / Developer / Unvalidated attributes in the collectInformation module
Guillaume Grasset
Wednesday 03 November 2010 2:59:59 am
Hi !
I try to use the collectinformation module in ez 4.3. Everything is ok when my datas respect the expected status of datatypes : entries are validated, stored in database and user is redirected to content/collectedinfo/form.tpl.
When entries aren't validated, a $unvalidatedAttributes array receive the wrong attribute and I expect I'm able to use this variable in order to warn user for corrections.
Nevertheless, it might be not possible. The "view" module is called and run with a "AttributeValidation" parameter which has this array. In view.php, a $validation receive this $Params['AttributeValidation'] but this variable is unused in this script.
So how can I use this $unvalidatedAttributes variable ? And if I can't, how can I warn my users about his wrong entries ?
Thanks in advance for your answers.