I have a number field currently that accepts all values. I want to add a validation/condition that would restrict the field to only accept positive values (values >= 0)
How do I do this?
I have a number field currently that accepts all values. I want to add a validation/condition that would restrict the field to only accept positive values (values >= 0)
How do I do this?
Best answer by Pawan Gangwani
Hello
Welcome to the DocuSign Community!
Currently you cannot apply the custom validation on the number type field in document generation. Now instead of the Number field, you can use the Text field and add the Customer regex validation which exactly full fill the requirement. Here is the Regex.
Regex: ^(?!0(\.0+)?$)(\d+(\.\d+)?|\.\d+)$
Thank you, Hope it helps!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.