It is possible to pass value from XML to JS components.
<field name="postcode" component="Magento_Ui/js/form/element/post-code" formElement="input" sortOrder="70"> <settings> <dataType>text</dataType> <visible>true</visible> <label translate="true">Zip/Postal Code</label> <validation> <rule name="required-entry" xsi:type="boolean">true</rule> </validation> </settings> </field>
For example here we can pass the label. In our case Zip/Postal Code.
I wish to pass a custom field value
... <settings> ..... <custom_field>Custom Value</custom_field> ... </settings> ...
Also tried by passing it as an attribute for the field node as such
<field custom_field="Custom Value" ....
with no luck. The value is not available in the JS component (in this example Magento_Ui/js/form/element/post-code)
Any ideas on how to achieve this?