Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Kahn 602 posts 506 karma points
    Feb 12, 2013 @ 11:18
    Thomas Kahn
    1

    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

    Feb 12, 2013 @ 11:23

    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]

  • Thomas Kahn 602 posts 506 karma points
    Feb 12, 2013 @ 11:33
    Thomas Kahn
    0

    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

    Feb 12, 2013 @ 12:18

    Yeah [#nodeName] should do it

  • Thomas Kahn 602 posts 506 karma points
    Feb 13, 2013 @ 09:17
    Thomas Kahn
    0

    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

    Feb 13, 2013 @ 09:19

    Just a sec I'll test :)

  • Comment author was deleted

    Feb 13, 2013 @ 09:21

    Try [#pageName] that ones works (tested with the razor macro)

Please Sign in or register to post replies

Write your reply to:

Draft