Skip to content

Examples

cafebabe1991 edited this page Mar 3, 2017 · 4 revisions

Dumping an input field

This field will be dumped to the root of the json since we have not specified the group to dump this

<input type="text" name="first_name" placeholder="First Name" value="cafebabe">

Dumping a select field.

This field will be dumped to the root of the json since we have not specified the group to dump this

<select name="cars">
    <option>Lamborghini</option>
    <option>Porsche</option>
    <option>Maybach</option>
</select>

Dumping a normal checkbox/radiobutton field

This field will be dumped as a boolean variable in the json root since no group has been specified.

<input type="checkbox" name="isChecked">

Dumping a field inside a group in the json

This field will be dumped as a boolean variable in the json inside the 'foo.bar' property inside the root of json.

<input type="checkbox" name="isChecked" group="foo.bar">