Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

duplicate field value and increase it by one

$
0
0

Good day,

I'm true Adobe and Javascript novice and I have been trying to come up with a way to duplicate field value (Year, yyyy) and increase it by one. So if user enters 2013 this field called Year3 should say 2014. I have duplication going using: getField("Year2").value =getField("Year").valueAsString;

 

but I don't know how to get the field Year3 to go one up. I tried formatting it as string or number and do just + 1 but that makes it 20131.

 

 

Thanks

 

 

Amko


Viewing all articles
Browse latest Browse all 57214

Trending Articles



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