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 think I'm missing something here, but I can't seem to load the dataSource from a JSON file in string format.
I have a simple form with one select field. I'm trying to save and reload the submitted value from the json file, however, I thought that the data had to be in the format of " {"key":"value"} ", example: " {"Strawberry": "Strawberry Flavor"} " but my form will only populate the value if it's in this format:
" ["Stawberry"] ".
What am I doing wrong here?
Below is my form:
The list select options are being loaded via dataSource which is formatted like below. This is working fine.
I think I'm missing something here, but I can't seem to load the dataSource from a JSON file in string format.
I have a simple form with one select field. I'm trying to save and reload the submitted value from the json file, however, I thought that the data had to be in the format of " {"key":"value"} ", example: " {"Strawberry": "Strawberry Flavor"} " but my form will only populate the value if it's in this format: " ["Stawberry"] ".
What am I doing wrong here?
Below is my form:
The list select options are being loaded via dataSource which is formatted like below. This is working fine.
"../config/icecream-list.json" :