Getting choices list for dropdown from data

Comments

5 comments

  • Avatar
    Ron Oren

    Hi Sven.

     

    A) you can inject data by adding {panel:data} in the title. 

    data=the name of the item or value, case sensitive.

     

    B) Later this week we will release the new BloX version 2.0, this version includes pre-built input fields where it will be easier to control.

    please stay tuned :)

    0
    Comment actions Permalink
  • Avatar
    Sven Willenberger

    Unfortunately this simply creates a list of choice dropdowns, with each dropdown populated by one choice, rather than one dropdown populated by all choices.

    0
    Comment actions Permalink
  • Avatar
    Ron Oren (Edited )

    I understand, in this case, please try to use this:

    {
      "type": "Input.ChoiceSet",
      "id": "selectVal",
      "class": "",
      "displayType": "compact",
      "value": "1",
      "choices": [
        {
          "title": "option 1",
          "value": "1"
        },
        {
          "title": "option 2",
          "value": "2"
        }
      ]
    }

     

    By the way, the above snippet was taken from the new version (2.0) which will be released this Wednesday.

    Once it's available, please upgrade to enjoy other pre-built input options.

    0
    Comment actions Permalink
  • Avatar
    Sven Willenberger

    The code snippet you posted is literally the same code that I started this thread with, lol. I am trying *not* to hard code each title and value data, but rather have those come from panel: variables.

    0
    Comment actions Permalink
  • Avatar
    Ron Oren (Edited )

    Hi Sven,

    My bad, no more late emails for me :) LoL. 

    You are right, currently, it's not possible to use data from Items or Values to feed the drop down.

    What's available now is:

    A) to connect the Items and use the filters to define what you see in each value

    B) To change the carousel to False and then see all the values.

    Both are not optimal but this is what available right now, I've submitted a feature request to support this and will let you know once it's available.

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.