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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -