Skip to main content
Newcomer
Jan 30, 2024 11:57 PM UTC
Solved

Formatting number field to accept percentage

How can I format the number field to accept percentages?  When “%” is entered an error message displays.

Hero
Jan 31, 2024 12:06 AM UTC

@StevenKing You cannot use a Text based field with number validation and have it accept a “%“. There are probably a few options, one would be to create a custom validation on a Text field and set a Regex to allow only numbers and a percent sign.  

Second if there always will be a percent sign then hardcode that into the document OR set that as a read-only Text field pre-adding the percent sign.

2 replies

Hero
Jan 31, 2024 12:06 AM UTC

@StevenKing You cannot use a Text based field with number validation and have it accept a “%“. There are probably a few options, one would be to create a custom validation on a Text field and set a Regex to allow only numbers and a percent sign.  

Second if there always will be a percent sign then hardcode that into the document OR set that as a read-only Text field pre-adding the percent sign.

Translate
Docusign Employee
Feb 22, 2024 12:25 AM UTC

Hi @StevenKing,

 

I hope you are doing well.

 

I would like to confirm if you were able to solve your issue by utilizing the solution that was suggested? 

 

If so, please mark it as the best answer by clicking “Select as Best” to make it easier for other users to find

 

Otherwise, feel free to let me know and I will gladly help you address the situation as soon as possible.

 

Best regards,   

Alejandro R. | DocuSign Community Moderator   

   

"Select as Best" below if you find the answer a valid solution to your issue!   

 

Translate