Searchable drop-down list, with classes & sub-classes, refer question no. 2, 3 & 4 in Livelihood survey. (see code below)
Since choice lists comprise of upto 45 choices,
the choice lists could be stored as a separate json, and compiled serverside before conversion to xml
question type requires a search-OR-select element, where a search box and a scrollable drop down list help surveyors to search for / pick the required item
Additional question types:
Searchable drop-down list, with classes & sub-classes, refer question no. 2, 3 & 4 in Livelihood survey. (see code below) Since choice lists comprise of upto 45 choices,
{ "-no": "50", "-name": "preferred_training", "qtext": "Preferred area for training / skill enhancement", "qtype": "D", "qhint": "Search or select", "req": "F", "class": [ { "cltext": "Male earners", "clsub": [ { "-no": "a", "clstext": "For primary occupation", "clschoices": "refer_to_choicelists_stored_elsewhere" }, { "-no": "b", "clstext": "For secondary occupation", "clschoices": "refer_to_choicelists_stored_elsewhere" } ] }, { "cltext": "Female earners", "clsub": [ { "-no": "c", "clstext": "For primary occupation", "clschoices": "refer_to_choicelists_stored_elsewhere" }, { "-no": "d", "clstext": "For secondary occupation", "clschoices": "refer_to_choicelists_stored_elsewhere" } ] } ] }