Title: Enhancement suggestion in Form validators Post by: chrwei on April 21, 2020, 08:04:20 AM I think it would be useful to have the option of the form validator "message" to be a function that the value and parameters are passed to so that transforms more complex than simple token substitution could be applied to the message.
example: Code: percentage: { note this is a simplified example, the use case I'd like is actually quite a bit more complex. Title: Re: Enhancement suggestion in Form validators Post by: jarry on April 22, 2020, 12:31:09 AM The 'param' can be converted before displaying the message. Please look at this code.
Code: percentage: { Title: Re: Enhancement suggestion in Form validators Post by: chrwei on April 22, 2020, 06:19:20 AM odd, i had tried that with no effect, but I just tried again and it worked
|