I have created a dynamicRows component for Customer Edit Form. For some reason, if I set visible to false on the field "position", when I submit a new record, the position is never part of the data array.
<field name="position">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<!-- item name="source" xsi:type="string">customer</item -->
<item name="dataType" xsi:type="string">number</item>
<item name="formElement" xsi:type="string">input</item>
<item name="componentType" xsi:type="string">field</item>
<item name="label" xsi:type="string" translate="true">Position</item>
<item name="dataScope" xsi:type="string">position</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</field>
When the field is visible, then the key "position" is provided and everything works perfect, but I prefer this field to stay hidden. This only happens when adding a new row.
Any thoughts?