Can i use just one validator for multiple slots on form?

Hi! I have a form to fill with yes-no questions. I’m taking yes as a True and no, as a False boolean. I was wondering if I can use just one validator for all my slots. I’d be grateful if theres any code available as example, please.

thanks in advance!