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
Join the Docusign Community by logging in with your Docusign developer or customer account credentials.
Don’t have an account? You can create a free one when registering.
Note: Partner-specific logins are not available yet. Partners should log in as either a customer or developer
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.