I have a scenario where I would like 2 fields, both number fields, to have different error messages based on class name. This is because both these fields have different min and max values.
I have tried to achieve this with the following:
[number* leg-spct min:0 max:100 class:digits]
[number* leg-spct min:0 max:100 class:number]
But both shows error message that I have set for numbers.
Kindly assist me with this ASAP.
1. Field should accept between 1-20 – anything else, error message has to show “The age has to be between 1-20”
2. Field should be greater than 1, but lesser than 100 – anything else, error message has to show “This field needs a percentage greater than 0 and less than 100”
3. Field should be 100 only (min 100, max 100) – anything else, error message has to show “This field’s percentage should total up to a 100”