We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44227
    • 6 Posts
    Is there someplace I can get some info for numberTV parameter (allow decimal true/false, allow negative true/false) fields to work with MIGX?
    I've checked the docs and online search about migx fields but NONE of the result showcasing the numberTV even in the migx documents/examples. Am I missing something here? maybe its not supported?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Easy, create a regular number-type TV and use it as the inputTV for your MIGx field.

      {"caption":"Number", "fields":[
          {"field":"number","caption":"Number","inputTV":"number"}
      ]}
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 44227
        • 6 Posts
        doh... I'm thinking way to far on this one lol
        I was using
        "inputTV":"numberTV"

        and this resulted in an error.

        thanks for clearing it up smiley
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I tried it using an 'inputTVType' of number, but it didn't work. This is one of those cases where you need a separate "helper" TV to get the special features. You can name your number TV anything, so yours would work as long as you had a number-type TV named "numberTV".
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org