2022.1

Table Of Contents
</pinElm1>
</values>
With the Use enhanced PHP๎˜ƒarrays option, the XML looks similar, but in this case, the value
between the first pair of square brackets is expected to consist of two parts, separated by an
underscore (e.g. row_0). The first part becomes the element's name. All content after the first
underscore (preferably an integer) is given as an attribute of the element (e.g. <row _idx=0>).
The above HTML results in the following XML:
<values count="4">
<user_account>pparker@eu.objectiflune.com</user_account>
<name>Peter Parker</name>
<company>Objectif Lune</company>
<pinElm1>
<pin _idx=0>
<left>122</left>
<top>253</top>
<type>dent</type>
</pin>
<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
page๎˜ƒ747) 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:
Page 596