Add hidden field in ui_component form magento 2.

Magento you can add a hidden field to the ui_component XML file with the use of attribute formElement=”hidden”.

The hidden field is used mostly for an entity_id field.