Hi guys! I am looking for a way to use a JavaScript function (lets say a normal "console.log") to use in the validation of a field and check if a try-catch would throw an error with the given input. Is there any way?
Solution
Thanks for your very quick reply! I now use extraInputAttributes() to check the input and set an error by using .setCustomValidity() on the input. Thanks again!