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.
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:
How do I set the disabled option back to false programatically after I'm done initializing the form?
My form has some arrays, and the "Add new Item" button for the array is not disabled when the form first appears (and when I press it, the new element of the array is not disabled). Is this a bug, or do I have to disable that button separately?
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.
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!