Hallo,
I have a field from which I can toggle between delivery and warehouse
Delivery it will display other related address field

Warehouse - will display another fileds and hide the address fields (above)

If I select 'Delivery' and enter some address information, then switch to 'Warehouse', how can I clear the address information values from the delivery? and vice versa if I switch to Delivery then the value on warehouse will be cleared.
I tried to incorporate the clearing of fields to layout function but it doesn't work

Please advice.
Thank you