We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52741
    • 4 Posts
    Hi everybody!
    Created new TV, Input Type: migx.
    Form Tabs:
    [
    {"caption":"Price", "fields": [
        {"field":"title","caption":"Button name"},
        {"field":"article","caption":"Article", "inputTVtype":"listbox","inputOptionValues":"@EVAL return '-- select resource --||' . $modx->runSnippet('select_article');"}
    ]}
    ]


    How can I do that listbox like default listbox on TVs (with manual input searching)?

    Default TV : http://www.giphy.com/gifs/l2SqfBp6YjuMugCNG
    MIGX listbox: http://www.giphy.com/gifs/l2Sq1yuWmWnPFpU88

    Thanks!
      • 47154
      • 6 Posts
      You need to add a "config" parameter to your field object:

      {"field":"article","caption":"Article", "inputTVtype":"listbox","inputOptionValues":"@EVAL return '-- select resource --||' . $modx->runSnippet('select_article');","config":{"typeAhead":true,"typeAheadDelay":250,"minChars":3}}


      The "typeAheadDelay" and "minChars" options do have defaults already set in modx but can be overridden with the above config.

      Additional information on Ext.form.ComboBox: http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.ComboBox