We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40758
    • 17 Posts
    Hello,

    I'm trying to use the inputTVtype resourcelist with MIGX, but I can't find any documentation on how to set the option to specify parent id. Is that done with inputOptionValues in the Form Tabs field?

    [
    {"caption":"Secure Doc", "fields":[
      {"field":"securedoc_title","caption":"Display Name","inputTVtype":"text"},
      {"field":"securedoc_passcode","caption":"Passcode","inputTVtype":"text"},
      {"field":"securedoc_document","caption":"Document","inputTVtype":"resourcelist", "inputOptionValues":{"parents":"7"}}
    ]}
    ]

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      you can try:

      [
      {"caption":"Secure Doc", "fields":[
        {"field":"securedoc_title","caption":"Display Name","inputTVtype":"text"},
        {"field":"securedoc_passcode","caption":"Passcode","inputTVtype":"text"},
        {"field":"securedoc_document","caption":"Document","inputTVtype":"resourcelist", "configs":{"parents":"7"}}
      ]}
      ]
      


      or:

      [
      {"caption":"Secure Doc", "fields":[
        {"field":"securedoc_title","caption":"Display Name","inputTVtype":"text"},
        {"field":"securedoc_passcode","caption":"Passcode","inputTVtype":"text"},
        {"field":"securedoc_document","caption":"Document","inputTVtype":"resourcelist", "inputOptionValues":"7"}
      ]}
      ]
      


      or

      create a resourcelist - TV and use its name in "inputTV":"yourTVname"
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 40758
        • 17 Posts
        Thank you very much.

        method 2 worked.
        "inputOptionValues":"7"


        Strange that it doesn't specify name of the param.
        I will take this over the creating the 2nd TV method, just to keep the tree clean.