Jump to content

Acrobat PDF help


DBookatay

Recommended Posts

I am creating PDF's unings 9.1 Pro and am having a problem with my "0"s being trimmed when I do not want them to. Here is an example:

var co_city = getField('co_city').value;
var co_state = getField('co_state').value; 
var co_zip = getField('co_zip').value; 

if (co_city) {
    var co_add2 = co_city + ", " + co_state + " " + co_zip; 
}

event.value = co_add2;

 

This script takes the users address fields "city" "state" and "zip" and returns them as 1 line: Danbury, CT 06810. Except the "06810" turns into "6810". How do I stop the "0"s from being trimmed?

 

The same result happens with dates. I use "dte1" + "dte2" + "dte3" = "date"

Should read "04/25/09" yet is returned as "4/25/9"

 

Any help would be greatly apprechiated.

Link to comment
Share on other sites

 

Baically thats the same as saying "read the manual..."

Thanks for the loads of help, now instead of posting a quick question as an admitted user that knows little about javascript hoping for a quick answer, I'll go to Barnes & Noble and buy a book.

 

Lots of help on this forum...

Link to comment
Share on other sites

Perhaps that's something you should do.

This might be a quick question for you, but necessarily a quick answer. And besides, I'm not much into JavaScript either... so I would have to do same googling as you :P

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.