This is possible with the TEB Validator widget.
Here's a live demo displaying your specific use case:
Here's a link to the Cp 5.5 project:
Here's more info about the widget:
Let me know if you have further questions.
Thanks, Jim, I thought you would reply, wanted to give the same suggestion.