Copied to clipboard

Flag this post as spam?

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


  • Jez Reel R. Maghuyop 20 posts 62 karma points
    Dec 10, 2018 @ 22:38
    Jez Reel R. Maghuyop
    0

    Display DropDownList value in Nested Content Template

    Hi, I'm currently using Nested content and it is my first time using it part of my Document Types that I add in my Nested Content uses a DropDown list and I'm trying to display the value of the DropDown in using the Template Field.

    My use case is for having Product Variants, so that it will be easier to identify the product variant without clicking into it.

    My DropDown List contains storage size (1GB, 2GB, 3GB, etc..)

    I want my Nested Content Template to look like this SKU - ProductName - Color - StorageSize

  • Claushingebjerg 939 posts 2574 karma points
    Dec 12, 2018 @ 09:41
    Claushingebjerg
    0

    As far as i know, you can't display the value of a dropdownlist item in the template... It will only show the Id. So instead of "3gb" you'll get something like ["48"].

    Pretty useless, but that's how it is im afraid...

  • Jez Reel R. Maghuyop 20 posts 62 karma points
    Dec 12, 2018 @ 20:08
    Jez Reel R. Maghuyop
    0

    Yeah, I ended up adding a displayName field for the nested contents which contain the info that we need at first glance.

  • JoskerVemeulen 68 posts 262 karma points
    Dec 15, 2019 @ 19:48
    JoskerVemeulen
    0

    Any update on this? Same issue on V8. Brackets and quotes are showing.

  • Adam 8 posts 86 karma points
    Feb 04, 2020 @ 13:39
    Adam
    3

    In fact you can selected value of nested content dropdown. All you have to do is take first element from array. I.E: {{mydropdown[0]}}. Cheers!

  • jake williamson 207 posts 873 karma points
    Feb 10, 2021 @ 02:42
    jake williamson
    0

    excellent work adam, thank you for posting that reply ;)

    just returned to a project that had this exact same problem, viewed this thread before but noticed your reply...

    problem solved!

Please Sign in or register to post replies

Write your reply to:

Draft