2021.1

Table Of Contents
<pin _idx=1>
<left>361</left>
<top>341</top>
<type>dent</type>
</pin>
</pinElm1>
</values>
This option makes it easier to select all elements on the same level in a data mapping
configuration, and to convert the XML to a JSON object.
You can try out this feature with the COTG Time Sheet template, as explained in this how-to:
Using The PHP Array Option. The COTG Fields Table element (see "Fields Table" on
page703) in that template has an Add button to add rows to a table, and groups data following
this approach.
Getting the status of unchecked checkboxes and radio buttons
Unchecked checkboxes and radio buttons are not submitted (as per standard HTML behavior),
so how to get the state of those checkboxes and radio buttons? A common approach to get the
state of unchecked checkboxes and radio buttons is to add a hidden field to the Form with the
same name as the checkbox or radio button, for example:
<input type="hidden" name="status_1" value="0" />
<input type="checkbox" id="status_1" name="status_1" value="1" />
When multiple fields with the same name are encountered, the previous value is overwritten.
This way the values for unchecked checkboxes and radio buttons can be processed easily.
Tip
The Capture OnTheGo (COTG) plugin automatically adds a hidden field for every
unchecked checkbox on a Form when the Form is submitted. It does this for every Form;
the template doesn't have to be a COTG template. (See: "Using the COTG plugin" on
page599.)
Using JavaScript
JavaScript files, libraries and frameworks can be added to a template, primarily for use in Web
pages and Capture OnTheGo Forms. .
Page 557