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

Questions about the "disabled" property #582

Open punto- opened 6 years ago

punto- commented 6 years ago

Hi.

I have a form that I need to populate with some info that comes from an ajax call in the postRender callback, so I set the "disabled" option to true in the options dictionary, and I have a couple of questions:

Thanks!

ambischof commented 6 years ago

1) Something like $('#myForm').alpaca().enable(); there is an enable function that you can use. 2) that is a bug. A disabled array field should not allow items to be added. I would create a new issue for that.