Forums / Setup & design / [solved] Add a hidden field in a Information Collector Form

[solved] Add a hidden field in a Information Collector Form

Author Message

Paul Etienney

Wednesday 17 December 2008 7:37:50 am

Hi,

<b>Here is what i want to :</b>
I want to know the page visited before the visitor decide to fill Information Collector form.

To do so, I put an extra hidden field in the template :

<input type="hidden" name="PrecPage" value="{ezhttp( 'LastAccessesURI', 'session')}" />

<b>My problem</b>

I do not know how to have access to this extra input when the form is filled.

Is there a variable ? The $collection variable just contains the object attributes.

Thanks.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Ivo Lukac

Thursday 18 December 2008 12:51:14 am

Hello Paul,

Add one more attribute to your class, and then in full template hide this field and fill it with value you want. With this you can always use your value (e.g. in email)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Paul Etienney

Monday 22 December 2008 4:52:41 am

Sometime, it is so simple that we don't think about it.

Thank you.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Ivo Lukac

Monday 22 December 2008 5:03:29 am

That is why it is called eZ ;)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac