Copied to clipboard

Flag this post as spam?

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


  • Mike Poole 53 posts 165 karma points
    Jun 25, 2020 @ 11:24
    Mike Poole
    0

    Access Dropdown selected value in Nested Content template

    I have a template against my Umbraco.NestedContent property with the following syntax

    {{consentCalculationName}} - {{((consentAlwaysDisplay == 1)  ? 'Always Display' : consentCriteriaItemOne + ' ' + consentCriteriaOperator + ' '+consentCriteriaItemTwo)}}
    

    Where consentCriteriaOperator is an Umbraco.Dropdown property

    How do I access the selected value in the template?

    The code above returns the Id. I have tried consentCriteriaOperator[0] and also consentCriteriaOperator[0]["name"] and consentCriteriaOperator[0]["value"]

    Many thanks

    Mike

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies