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

Data not the same coming in as out. #698

Open nickjgentile opened 5 years ago

nickjgentile commented 5 years ago

Data coming in options: { fields: { fieldName: helper: "test" } };

Data coming out with api method Alpaca.fieldInstances[fieldId].options. => { helpers: ["test"] }

So, when I use JSON to create the form I am adding a HELPER property to the field's options, but when I get the field options using Alpaca.fieldinstances[field].options it comes out with a completely different data pattern.

Is there another way to get the data for a field input's options other than Alpaca.fieldinstances[field].options?