Skip to main content
Solved

Formatting number field to accept percentage


Forum|alt.badge.img+1

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

Best answer by David.Schmitz

@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.

View Original
Is this content helpful?

2 replies

Forum|alt.badge.img+15
  • Valued Contributor
  • 557 replies
  • Answer
  • January 31, 2024

@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.


Forum|alt.badge.img+15
  • Community Moderator
  • 2070 replies
  • February 22, 2024

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!