And if the property you want is the name of the page that the form is published on, you would just enter [#nodeName] or does it have to be custom properties?
I'm also wondering if the syntax described on page 21 in the manual really applies to form field captions? Isn't that just for dynamic values in the workflow? I'm looking for a way to make the page name of the page where the form resides a part of the caption for a form field. So if the page is named "Brian Wilson" i want the caption on the form field to be:
Feel free to ask Brian Wilson a question [TEXTAREA GOES HERE]
Dynamic captions for form fields in Contour?
If I want a dynamic value for a form field caption in Umbraco Contour, is there a way to accomplish this with the standard functionality?
What I'm looking for is something along the lines of:
Caption: Please submit your question to {$currentPage/someParameter}
/Thomas
Comment author was deleted
Yup there is a special syntax you can use, check the dev docs pdf http://our.umbraco.org/FileDownload?id=2921 page 21
Insert page value
[#propertyAlias]
Insert recursive page value
[$propertyAlias]
Insert cookie value
[%cookieValue]
Insert value from request collection
[@requestKey]
And if the property you want is the name of the page that the form is published on, you would just enter [#nodeName] or does it have to be custom properties?
I'm also wondering if the syntax described on page 21 in the manual really applies to form field captions? Isn't that just for dynamic values in the workflow? I'm looking for a way to make the page name of the page where the form resides a part of the caption for a form field. So if the page is named "Brian Wilson" i want the caption on the form field to be:
Feel free to ask Brian Wilson a question
[TEXTAREA GOES HERE]
/Thomas
Comment author was deleted
Yeah [#nodeName] should do it
I've just tried this and the result is that it prints the tag [#nodeName] as text so something doesn't work like it should.
Are you 100% certain that this syntax works in form captions?
/Thomas
Comment author was deleted
Just a sec I'll test :)
Comment author was deleted
Try [#pageName] that ones works (tested with the razor macro)
is working on a reply...