Form fields based on fields values


anyone have idea how to show/hide some fields in form fields based on form value?

For example I have form fields “Document type” enum with values: Receipt, Invoice

I have also form field Tax ID

I would like to show this field in form field only when document type value = Invoice

Any idea how to do that without using embedded form?