Conditional logic properties

Is it possible to create conditional logic for a property that only activates when a deal moves to the “Closed Won” stage in the sales pipeline?

We have a property called “Deal Type,” where the sales rep can select whether the deal is a new sale, upsell or down sale etc. I want the sales rep to fill out this property at the beginning of the stage. Additionally, I’d like to make another property, “Invoice Email,” required, but only if the deal is marked as an upsell. However, I want them to fill in the “Invoice Email” property when the deal moves to the “Closed Won” stage, as this detail isn’t usually available in the earlier stages.

How can I do it in hubspot?