gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

load dependecies based on data of type ="select" not just Value #741

Open vijay7029 opened 4 years ago

vijay7029 commented 4 years ago

I have a scenario where depending on data-attribute I need to display some kind of alpaca field.

Lets say I have few options in a select box where each option is different type,lets say I have a text,date etc, If user selects text field I should display type="string" , where as when when user selects option whose data-attribute is date , then I must display type="date" field, with current select box I can only add values as dependencies , how do I add data to type="select" and also use that value to load dependencies