Tim, I've done that: Created a hidden field set the default value to #pageHeading, returned "pageHeading", then I set the caption to the #pageHeading with the same result.
I've even tried enclosing them in sqaure brackets: [#pageHeading]. Still with the same result.
I have Umbraco Contour version 3.0.17 and use razor macro to add form to template. I can populate contour form fields with custom document properties(e.g. shortTitle etc) using [#propertyAlias] notation. I need to assign the id of current document to a hidden field. When i try [#id] i can not get document id.
Any advice?
TIA
Update : I found the syntax to pass query string to contour : [@pid] . The trick is parameter name must be at least 2 characters long.
Plus, to insert document properties [#pageID] syntax is available.
Populate Contour form field with page field
I have an Events section in which I would like clients to register for a "named" event.
Can I take the Event name (a page field) and have this inseredt this into the contour form?
If so, how?
Many thanks,
Bill
Yes you Could make use of QueryString then in contour have a hidden field with default value [@yourQueryString]
I haven't tried that!
I have tried #pageHeading, which is the alias of the event name but that just renders as: "pageHeading" !!!
I'll try @pageHeading (from a queryString)
Thanks
Try something like this
Then in your contour form you can get a HiddenField with Default Value
Comment author was deleted
Just set the caption to [#propertyAlias] that should do the trick
Tim, I've done that: Created a hidden field set the default value to #pageHeading, returned "pageHeading", then I set the caption to the #pageHeading with the same result.
I've even tried enclosing them in sqaure brackets: [#pageHeading]. Still with the same result.
Any further sugestions?
Comment author was deleted
Ok can you tell me umbraco version and if you are using usercontrol or razor macro
Thanks :)
Umbraco version 4.11, how would I know if Contour is usercontrol or razor macro?
Comment author was deleted
Check where you inserted the macro what alias the macro has :)
Will do.
Tim, it's a Razor macro. Would that make a difference?
Comment author was deleted
Yeah make sure you are running the latest Contour version since you might be running an older version where this wasn't possible yet
To upgrade check http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade
The version I am using is 3.0.9. Does this support page field inclusion?
Comment author was deleted
Think you'll need a more recent version
Hi Tim,
I have Umbraco Contour version 3.0.17 and use razor macro to add form to template. I can populate contour form fields with custom document properties(e.g. shortTitle etc) using [#propertyAlias] notation. I need to assign the id of current document to a hidden field. When i try [#id] i can not get document id.
Any advice?
TIA
Update : I found the syntax to pass query string to contour : [@pid] . The trick is parameter name must be at least 2 characters long.
Plus, to insert document properties [#pageID] syntax is available.
is working on a reply...