But I wondered if it is possible to call up a custom validation message from the Message Library instead of a hardcoded error text.
So instead of:
var customErrorMessage = 'Write your message here';
to have some variable that uses a specific message from the Library.
Especially because Library messages support translation, I'm hoping that this way I can make my error message multilingual.