Need to add @pagename to a form as a hidden field... btw Contour Newby!
Hi guys, I hope you cal help.
I have just set up Contour for my first project (you can see teh project at bmhwebdev.co.uk) and I am using Contour to track bookings to courses. One of the fields I want to automatically track on the booking form and subsequent email is the course title which equates to the pageName which is simply an Umbraco:Item field as set up in the document type e.g. <umbraco:Item field="pageName" runat="server" />
The problem I am having is simply that I have no idea where to start on this! Can anybody suggest a reference where I can research the answer, or has anybody implemented this kind of set up already?
I was assuming that this is a fairly standard implementation and hoping that somebody can help this newby!!
One thing you could do is add a Hidden Field to your form, and give it this for the Default Value: [#pageName]
This will automatically load the current page's name as the fields value. For more info check out the Developer Docs on the project page under Documentation, under "Bracket syntax for default field values"
Need to add @pagename to a form as a hidden field... btw Contour Newby!
Hi guys, I hope you cal help.
I have just set up Contour for my first project (you can see teh project at bmhwebdev.co.uk) and I am using Contour to track bookings to courses. One of the fields I want to automatically track on the booking form and subsequent email is the course title which equates to the pageName which is simply an Umbraco:Item field as set up in the document type e.g. <umbraco:Item field="pageName" runat="server" />
The problem I am having is simply that I have no idea where to start on this! Can anybody suggest a reference where I can research the answer, or has anybody implemented this kind of set up already?
I was assuming that this is a fairly standard implementation and hoping that somebody can help this newby!!
Cheers all,
Bri
Hi Brian,
One thing you could do is add a Hidden Field to your form, and give it this for the Default Value: [#pageName]
This will automatically load the current page's name as the fields value. For more info check out the Developer Docs on the project page under Documentation, under "Bracket syntax for default field values"
HTH,
Tom
is working on a reply...