Can a Configurable List Widget read values from another field ?

  • Profile Image
    JustSport
    Asked on March 05, 2017 at 08:02 AM

    I have a confi list widget with one of the fields being a drop down list of age ranges.

    e.g Under 10, Under 11, Under 12

    Now, if an earlier field on the form was DOB, I then know that the player can not play for a younger team, but can play for an older team. So If I can then make a field store the options available, then this field be the value of options used for the list widget ?

  • Profile Image
    Jim_R
    Answered on March 05, 2017 at 11:03 AM

    Any widget can't be pre-filled or populated based from another field. It's because all widgets run and exist in their separate iframes so there's no way to communicate with them. Which is why all widgets have the options/features/settings built-in in a WYSIWYG sort of way when setting them up.

    e.g.

    If you want to list Under 20, Under 17, Under 15 on a field named Age Group within a Configurable List, then you'd have to type them in as is, within the widget's setting wizard.

    The only workaround I can think of is to create multiple Configurable Lists and conditionally SHOW them based on a previous DOB field.

    Related guide: Smart-Forms-Using-Conditional-Logic