Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Kentico 9: Customizing the Form action based on the page the form is on

$
0
0
I have a form that I want to include on each of 250 pages based on the same pageType. Thus I want to include the form reference in the template and have it render on all pages. this much seems to be working. However, I want to have the form to trigger an email send to a different email address based on the pages contactEmail property (entered as a property of the page/ defined on the pageType) I am guessing I will have to build a custom form control or alternative form, but I don't know where to start and I have been pouring over the documentation for days. I tried enabling email notification and setting {% CurrentDocument.ContactEmail #%} as the recipient email, but that does not seem to work. I am not sure what context I can use macros in the form building or if there is a way to reference the current document field values within the form.

Viewing all articles
Browse latest Browse all 8832

Trending Articles