Enable a disabled form field in Widget API

I’m using Widget API in a web app built with Angular framework and I need to prefill and disable some fields when the user is logged in the service. If the user is not logged in or logged out of the service, those fields must be enabled again.
There is no information about re-enabling fields dynamically in the documentations.