We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    here are some core code to send forms from a tv it make
    tree hidden, checkbox and radio.
    in line 137 +/- middel a break and a case in the
    archive tmplvars.format.inc.php in manager/includes
    case "checkboxhiddenradio":
    $value = parseInput($value,"||","array");
    $tagid = $params[’tagid’];
    $tagname = ($params[’tagname’])? $params[’tagname’]:’div’;
    for($i = 0;$i<count($value); $i++){
    $tagvalue = is_array($value[$i]) ? implode(" ",$value[$i]): $value[$i];
    if(!$url) $url = $name;
    $o.= "<$tagname value=".$tagvalue." ".($params["class"] ? " class=’".$params["class"]."’":"").($params["style"] ? " style=’".$params["style"]."’":"").($params["attrib"]? " ".$params["attrib"]:"").($params["attrib"]? " ".$params["attrib"]:"").($params["type2"] ? " type=’".$params["type2"]."’":"").($params["name2"] ? " name=’".$params["name2"]."’":"").">$tagvalue" ;
    }
    break;
    and in line 109 of the mutate_tmplvars.dynamic.action.php
    in manager/actions/dinamic
    add
    widgetParams[’checkboxhiddenradio’]= ’&tagname=Tag Name;string;input &tagid=Tag ID;string &type2=Type;string &name2=Name;string &checked=Checked;string;checked &class=Class;string &attrib=Attributes;string’;
    and in the same archive in line 349 +/- down to the line ---------
    put this
    widgetParams[’checkboxhiddenradio’] = ’&tagname=Tag Name;string;input &tagid=Tag ID;string &type2=Type;string &name2=Name;string &checked=Checked;string;checked &class=Class;string &attrib=Attributes;string’;
    and now you have full functional forms objet to dinamic change.
    if people are interesting work for anothers like imputbox, dropdown....
    hi to all
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 33337
      • 3,975 Posts
      Hi xyzvisual,

      Thanks for sharing nice piece of code.

      Just out of curisity, what is your native language ? smiley

      regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • I believe xyz is in Spain. No?
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 32982
          • 674 Posts
          i,m from pamplona and the legal state is spain
            Jabiertxof (formerly XYZVISUAL)
            My bussines: http://marker.es
            https://www.youtube.com/user/jabiertxof/videos