Doesn't this module exist for UNA? Otherwise some code js example to get it?
https://www.boonex.com/m/conditional-fields
We haven't ported the Conditional Fields to UNA yet. It is in our TODO list, but we are unable to give any estimate on a release date.