I'm trying to insert a value from a property that I added in the doc type. I'm using this for doc2form, in the ResponseMessage parameter.
I tried using ResponseMessage="This is a test [#emailConfirmMsg]" and this always return [#emailConfirmMsg] instead of the actual value. I also tried using <umbraco:Item field="emailConfirmMsg" runat="server"></umbraco:Item> in the parameter, this didn't work either, with single and double quotes.
If I recall, the Macro Parameter Syntax [#propertyAlias] does not work as a part of a string, only when it's by itself. For example, ResponseMessage="[#emailConfirmMsg]" should work but ResponseMessage="This is a test [#emailConfirmMsg]" wont work.
Can you put all the text you need into the field? Otherwise you might have to add another parameter to the macro and concatenate the two.
macro parameter from alias in a template
I'm trying to insert a value from a property that I added in the doc type. I'm using this for doc2form, in the ResponseMessage parameter.
I tried using ResponseMessage="This is a test [#emailConfirmMsg]" and this always return [#emailConfirmMsg] instead of the actual value. I also tried using <umbraco:Item field="emailConfirmMsg" runat="server"></umbraco:Item> in the parameter, this didn't work either, with single and double quotes.
Is this even possible?
Hi Chris
what version of Umbraco are you experiencing this on? What does your document type look like? Could you perhaps post a screendump?
/Jan
Hi Chris,
If I recall, the Macro Parameter Syntax [#propertyAlias] does not work as a part of a string, only when it's by itself. For example, ResponseMessage="[#emailConfirmMsg]" should work but ResponseMessage="This is a test [#emailConfirmMsg]" wont work.
Can you put all the text you need into the field? Otherwise you might have to add another parameter to the macro and concatenate the two.
-Tom
Tom, that is the solution! Thanks :)
is working on a reply...