We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47562
    • 113 Posts
    Ok, this is probably a really dumb question, and I've searched the docs and these forums (honest!), so apologies in advance.

    How do I go about getting rid of the "undefined" in the MigX form? Which is to say, either get rid of the form tab altogether, or set the string to something a bit more useful? (See attached pic...).

    Thanks!

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

      • 4172
      • 5,888 Posts
      which version of MIGX are you working with?
      what is your formtabs - configuration?

      With the current version, if there is only one tab, it shouldn't show any tab.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 47562
        • 113 Posts

        Version of MIGX is 2.6.8.

        Form tabs is:

        [{"caption":"Solution"},
        {"fields":[
        {"field":"cp_solution_name",
        "caption":"Name",
        "inputTVtype":"text"},
        {"field":"cp_solution_page",
        "caption":"Page",
        "inputTVtype":"textarea"},
        {"field":"cp_solution_description",
        "caption":"Description",
        "inputTVtype":"textarea"},
        {"field":"cp_solution_image",
        "caption":"Image",
        "inputTV":"migxImageSolution"}
        ]}
        ]

        • discuss.answer
          • 4172
          • 5,888 Posts
          should be:

          [{"caption":"Solution","fields":[
            {"field":"cp_solution_name",
             "caption":"Name",
             "inputTVtype":"text"},
            {"field":"cp_solution_page",
             "caption":"Page",
             "inputTVtype":"textarea"},
            {"field":"cp_solution_description",
             "caption":"Description",
             "inputTVtype":"textarea"},
            {"field":"cp_solution_image",
             "caption":"Image",
             "inputTV":"migxImageSolution"}
            ]
          }]


          otherwise you have one tab without fields, which doesn't get displayed and another one with your fields, but with an undefined caption.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 47562
            • 113 Posts
            Ah, got it. Thanks so much, Bruno, for the clear explanation of what I was doing wrong... smiley