percentage of the advance does not allow us to include %. It allows us to include numbers up to 50

surya9
Tera Contributor

- In the form, if the user selects salary advance, the field percentage of the advance does not allow us to include %. It allows us to include numbers up to 50, which is correct, but it should also allow to include the % character. I  tried to make this field be a number + %, however, it is not working 100%....For example, I was able to submit a ticket with 60% salary advance and unfortunately, when I try to submit a 45 (without % character), the system does not allow me

 

2 REPLIES 2

surya9
Tera Contributor
 

Community Alums
Not applicable

Hi Surya,

 

Use this Regex: ^([1-9]|[1-4]\d|50)(%?)$

This Regex allows:

- Numeric values from 1 to 50 with or without % symbol.

 

I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.