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

Dependent fields are not show on setValue #716

Open thesame opened 5 years ago

thesame commented 5 years ago

Field with dependency isn't shown when the dependency is met by setValue. Follow the example: https://jsfiddle.net/9xLtwrs4/7/ The field "Name" is shown when "ok" clicked directly but not shown when "ok" is set by setValue.

eladavron commented 4 years ago

Can confirm, came here to report this.

Edit: Went as far as diving into the code and saw that there was an "updateObservable" method for fields, which should also update the dependency observable, but it didn't work so either I was using it incorrectly or it's not doing what I thought it was doing.