Prohibit create/modify ticket

Hi!
I need to prohibit ticket creation in some queues (with error message)
if some custom fields are empty. How can I do this?
I thought I can use scrips for this task, but after examing
"Transaction_Overlay.pm" I understood that it was a wrong idea :frowning:

Thanks.