meteor - Implementing logical nested select in quickForm SimpleSchema -


property.attachschema(new simpleschema({   'lga': {     label: "l.g.a",     type: string,     allowedvalues:     ["aba","oha", "enu"],     autoform: {         affieldinput: {           firstoption: "(pls, select l.g.a)"         }     }   } , 'town': {   label: "town",   type: string,   allowedvalues:   ["abakpa","ewula", "ezeoka", "ubu","echa", "onu" ,"eke", "afor"],   autoform: {     affieldinput: {       firstoption: "(pls, select ward)"     }     }   }  }); 

i have schema above , using quickform implement schema. "abakpa","ewula", "ezeoka" towns in "aba" lga while "ubu","echa", "onu" towns in "oha" lga , "eke", "afor" belong "enu" lga. illustration because list quite numerous. want situation if "aba" selected, option available town select field "abakpa","ewula", "ezeoka". if oha selected "ubu","echa", "onu" next option in town schema etc. pls, how implement this?.thanks.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -