We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40249
    • 31 Posts
    i've upgraded a site from modx 2.2.12 to 2.3.1 and i also upgraded migx from 2.5.8 to 2.8.1.

    not when i use the "add item" button i get the form but not the default values of the filds or values of listboxes.

    everything worked fine before.

    when i hover the field caption in the forms i can see only [[*]] on all fields. see the attatached screenshot

    i already reinstalled, complete removed migx and installed again but still the same result.

    Migx setup looks like this

    FORM:
    [
    {"caption":"Slide Image / Options", "fields": [
        {"field":"bgimage","inputTV":"bgimage","caption":"Image","inputTVtype":"image"},
        {"field":"transition","inputTV":"transition","caption":"Transition","inputTVtype":"listbox"},
        {"field":"slotamount","inputTV":"slotamount","caption":"Slotamount","inputTVtype":"text"},
        {"field":"masterspeed","inputTV":"masterspeed","caption":"Masterspeed","inputTVtype":"text"},
        {"field":"delay","inputTV":"delay","caption":"Delay","inputTVtype":"text"}
    ]},
    {"caption":"Flyin 1", "fields": [
        {"field":"active1","inputTV":"active1","caption":"Active","inputTVtype":"radio"},
        {"field":"x1","inputTV":"x1","caption":"X","inputTVtype":"text"},
        {"field":"y1","inputTV":"y1","caption":"y","inputTVtype":"text"},
        {"field":"speed1","inputTV":"speed1","caption":"Speed","inputTVtype":"text"},
        {"field":"start1","inputTV":"start1","caption":"Start","inputTVtype":"text"},
        {"field":"easing1","inputTV":"easing1","caption":"Easing","inputTVtype":"listbox"},
        {"field":"endeasing1","inputTV":"endeasing1","caption":"End-Easing","inputTVtype":"listbox"},
        {"field":"end1","inputTV":"end1","caption":"End","inputTVtype":"text"},
        {"field":"endspeed1","inputTV":"endspeed1","caption":"Endspeed","inputTVtype":"text"},
        {"field":"class1-1","inputTV":"class1-1","caption":"Style","inputTVtype":"listbox"},
        {"field":"class1-2","inputTV":"class1-2","caption":"IN-Animation","inputTVtype":"listbox"},
        {"field":"class1-3","inputTV":"class1-3","caption":"OUT-Animation","inputTVtype":"listbox"},
        {"field":"text1","inputTV":"text1","caption":"Text","inputTVtype":"textarea"}
    ]},
    {"caption":"Flyin 2", "fields": [
        {"field":"active2","inputTV":"active2","caption":"Active","inputTVtype":"radio"},
        {"field":"x2","inputTV":"x2","caption":"X","inputTVtype":"text"},
        {"field":"y2","inputTV":"y2","caption":"y","inputTVtype":"text"},
        {"field":"speed2","inputTV":"speed2","caption":"Speed","inputTVtype":"text"},
        {"field":"start2","inputTV":"start2","caption":"Start","inputTVtype":"text"},
        {"field":"easing2","inputTV":"easing2","caption":"Easing","inputTVtype":"listbox"},
        {"field":"endeasing2","inputTV":"endeasing2","caption":"End-Easing","inputTVtype":"listbox"},
        {"field":"end2","inputTV":"end2","caption":"End","inputTVtype":"text"},
        {"field":"endspeed2","inputTV":"endspeed2","caption":"Endspeed","inputTVtype":"text"},
        {"field":"class2-1","inputTV":"class2-1","caption":"Style","inputTVtype":"listbox"},
        {"field":"class2-2","inputTV":"class2-2","caption":"IN-Animation","inputTVtype":"listbox"},
        {"field":"class2-3","inputTV":"class2-3","caption":"OUT-Animation","inputTVtype":"listbox"},
        {"field":"text2","inputTV":"text2","caption":"Text","inputTVtype":"textarea"}
    ]}
    ]
    


    GRID
    [
    {"header": "Slide", "width": "400", "sortable": "false", "dataIndex": "bgimage","renderer": "this.renderImage"}
    ]


    as you can see on the attatched image all TVs are there too.

    anyone got a idea why this happens?

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

    [ed. note: degoya last edited this post 12 years, 2 months ago.]
    • discuss.answer
      • 4172
      • 5,888 Posts
      you should define either inputTV or inputTVtype, not both at the same time!

      what are the input-option-values and the default-value of your transitions - TV?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 40249
        • 31 Posts
        input Type:
        Listbox

        Input Option Values :
        boxslide||boxfade||slotzoom-horizontal||slotzoom-vertical||slotslide-horizontal||slotslide-vertical||slotfade-horizontal||slotfade-vertical||curtain-1||curtain-2||curtain-3||slideleft||slideright||slideup||slidedown||slidehorizontal||slidevertical||fade||random||papercut||flyin||turnoff||cube||3dcurtain-vertical||3dcurtain-horizontal||premium-random

        Default Value:
        fade

        as you can see in the attatched screenshot this happens with all fields.


          • 40249
          • 31 Posts
          Quote from: Bruno17 at Jul 26, 2014, 09:32 AM
          you should define either inputTV or inputTVtype, not both at the same time!


          this solved the problem smiley thanks, but it worked in 2.5.8 without any problems like i got it before.

          now the form looks like this

          [
          {"caption":"Slide Image / Options", "fields": [
              {"field":"bgimage","inputTV":"bgimage","caption":"Image"},
              {"field":"transition","inputTV":"transition","caption":"Transition"},
              {"field":"slotamount","inputTV":"slotamount","caption":"Slotamount"},
              {"field":"masterspeed","inputTV":"masterspeed","caption":"Masterspeed"},
              {"field":"delay","inputTV":"delay","caption":"Delay"}
          ]},
          {"caption":"Flyin 1", "fields": [
              {"field":"active1","inputTV":"active1","caption":"Active"},
              {"field":"x1","inputTV":"x1","caption":"X"},
              {"field":"y1","inputTV":"y1","caption":"y"},
              {"field":"speed1","inputTV":"speed1","caption":"Speed"},
              {"field":"start1","inputTV":"start1","caption":"Start"},
              {"field":"easing1","inputTV":"easing1","caption":"Easing"},
              {"field":"endeasing1","inputTV":"endeasing1","caption":"End-Easing"},
              {"field":"end1","inputTV":"end1","caption":"End"},
              {"field":"endspeed1","inputTV":"endspeed1","caption":"Endspeed"},
              {"field":"class1-1","inputTV":"class1-1","caption":"Style"},
              {"field":"class1-2","inputTV":"class1-2","caption":"IN-Animation"},
              {"field":"class1-3","inputTV":"class1-3","caption":"OUT-Animation"},
              {"field":"text1","inputTV":"text1","caption":"Text"}
          ]},
          {"caption":"Flyin 2", "fields": [
              {"field":"active2","inputTV":"active2","caption":"Active"},
              {"field":"x2","inputTV":"x2","caption":"X"},
              {"field":"y2","inputTV":"y2","caption":"y"},
              {"field":"speed2","inputTV":"speed2","caption":"Speed"},
              {"field":"start2","inputTV":"start2","caption":"Start"},
              {"field":"easing2","inputTV":"easing2","caption":"Easing"},
              {"field":"endeasing2","inputTV":"endeasing2","caption":"End-Easing"},
              {"field":"end2","inputTV":"end2","caption":"End"},
              {"field":"endspeed2","inputTV":"endspeed2","caption":"Endspeed"},
              {"field":"class2-1","inputTV":"class2-1","caption":"Style"},
              {"field":"class2-2","inputTV":"class2-2","caption":"IN-Animation"},
              {"field":"class2-3","inputTV":"class2-3","caption":"OUT-Animation"},
              {"field":"text2","inputTV":"text2","caption":"Text"}
          ]}
          ]
            • 4172
            • 5,888 Posts
            as soon, as I remove the inputTVtype - setting it is working for me.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 4172
              • 5,888 Posts
              either:

              {"field":"transition","caption":"Transition","inputTVtype":"listbox", "inputOptionValues":"boxslide||boxfade||slotzoom-horizontal||slotzoom-vertical||slotslide-horizontal||slotslide-vertical||slotfade-horizontal||slotfade-vertical||curtain-1||curtain-2||curtain-3||slideleft||slideright||slideup||slidedown||slidehorizontal||slidevertical||fade||random||papercut||flyin||turnoff||cube||3dcurtain-vertical||3dcurtain-horizontal||premium-random","default":"fade"},


              or

              {"field":"transition","caption":"Transition","inputTV":"transition"},
              
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!