Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

surya9
Tera Contributor

Hi everyone,

 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.Please help me how to proceed on this requirement.

1 REPLY 1

Gangadhar Ravi
Giga Sage

try this RegEx 

^([1-9]\d?|50)%?$