I am trying to include a Doc2Form in a template that I am planning on reusing in different sections of my website. Refer to the "creating an FAQ section" videos from Umbraco TV. When a user fills out the form, the form needs to create a child node of the page that the user filled it out on.
So I need the Doc2Form to have a dynamic value for: ChooseWhereToStore="pageID"
I was able to change the RedirectToNode variable and call the pageID via:
Dynamic Doc2Form - Post to PageID
Hello Everyone,
I am trying to include a Doc2Form in a template that I am planning on reusing in different sections of my website. Refer to the "creating an FAQ section" videos from Umbraco TV. When a user fills out the form, the form needs to create a child node of the page that the user filled it out on.
So I need the Doc2Form to have a dynamic value for: ChooseWhereToStore="pageID"
I was able to change the RedirectToNode variable and call the pageID via:
<umbraco:Item field='pageID' runat='server'></umbraco:Item>
but when I try to make the "ChooseWhereToStore" value dymanic, the form never creates any child nodes.
Here is the code for my form inside my template.
You'll notice that it is currently set to store everything on pageID = 1735... Has anyone made that dynamic before or know how I can make it happen?
Currently using Umbraco v4.7
Thanks
have done it in the past try
Sorry, I already have the redirect to node value in my code... that seems to work with the dynamic value just fine
But you are right... if I replace "1735" with
"[#pageID]"
Then it works great... thanks
is working on a reply...