Thursday 18 March 2010 4:48:41 am
Good afternoon, I'm struggling to get my forms working correctly. I've followed all the steps in the article http://share.ez.no/articles/ez-publish/how-to-create-ez-publish-forms/, but it is not working as it should. I've got two situations: 1) When submitting a form in which not all mandatory fields were entered, EZPublish returns to the form, but does not show any error message, even though I've added the following code:
{include name=Validation uri='design:content/collectedinfo_validation.tpl'
class='message-warning' validation=$validation collection_attributes=$collection_attributes} and the source code of the page does include the validation template:
<!-- START: including template:
design/standard/templates/content/collectedinfo_validation.tpl
(design/standard/templates/content/collectedinfo_validation.tpl) --> The fields the visitor HAD entered are prefilled. 2) When submitting the form with all mandatory fields entered, I'm again shown the form (no resultpage, no message), which is now empty again. The e-mail with the data is sent (so that works), but the visitor does not get any feedback. In the debuginformation that is shown in the parsed page it says that the collectedinfo/myform.tpl template has been loaded, but when I look in the source code (where the debug information is placed as comments) it says it has loaded the override/templates/full/myform.tpl and that is the page that I'm seeing (but do not want to).
Redirection proces:
a) http://www.mywebsite.com/index.php/my_registration_form (initial form page)
b) http://www.mywebsite.com/index.php/content/action c) http://www.mywebsite.com/index.php/content/collectedinfo/3309 (ID of my form, shows an empty form once again, instead of the values that the user had entered in an overview) In collect.ini.append.php I've got the following entries:
[InfoSettings]
TypeList[myform]=myform
[EmailSettings]
SendEmailList[myform]=enabled
[DisplaySettings]
DisplayList[myform]=result
[CollectionSettings]
CollectAnonymousDataList[myform]=enabled
Is it possible that my problems have someting to do with the privileges that an anonymous user has? Do I have to give him access to infocollector so that he can see the information he has entered?
I'm kinda at the end of my rope here. I have no idea why this won't work. Any help would be appreciated. Kind regards, Vivienne BTW. I'm using EZPublish version 4.1.3
|