Mix display and required logic for custom fields

This works thank you!!

The key moment I have been missing, I think, is setting it as hidden to begin with:

'display' => 'none',