I use ScriptRunner Workflow Validator and I'd to block a transition upon a condition
The condition is: that the field "Dress code" (text) must be filled / not null - only if the custom field "Event type" is one of the values ("Night event"/ "Special event")