Skip to main content
Known Participant
June 17, 2025
Question

Adding special characters to numbers not to text

  • June 17, 2025
  • 1 reply
  • 123 views

Good Day Pros, 

 

               I am reaching out today as I have a situation where I have a text box " % Body Fat ".  I am looking for a way that if a number is entered in it will add the % sign to the backside of the number. If the text W/S is entered, it will just be W/S. Is it possible to do this?

1 reply

PDF Automation Station
Community Expert
Community Expert
June 17, 2025

Enter the following as a custom format script:

if(!isNaN(event.value))
{event.value=event.value+"%"}