Hello. How can I add functionality or listen to events to get a list of possible values from another system and check them against the value in the document and then raise an error before the document is saved?