Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 66447

Display % in text field when number entered.

$
0
0

I have two data fields in a fillable form that need to return e.g., 33% when 33 is entered. I have created this script for both fields:

 

The two data fields are in tab order: Close_Ratio and Intro_ApptRatio.

 

// Custom Format script for text field 

if (event.value) event.value += "%"; 

 

The numbers return correctly but when I enter 25 in the first field, I get 25%. Then when I enter 33 in the second field, I get 33% but the first field changes to 25%%. Actually - every time I enter the field another % sign shows up - 25%%%%%.    : (

 

I can't figure out how the script is tying the two field together. Any help would be more than appreciated!


Viewing all articles
Browse latest Browse all 66447


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>