Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
way2krazy86
way2krazy86

Total Messages 1

Subject:Populate FULL ADDRESS from Address_Ln1 City State etc...

Hey everyone,

I have a PDF form where there are individual fields for
-Address Line 1
-City
-State
-Zip Code

and once the user has entered information for these fields... I want to know how to I populate a different field (ie:L TXT_FULL_ADDR) with the full address format using the values entered by the user for each part of his/her address?

So basically, say the user entered:

Address Line 1: 8277 Stemville Ave
City: OrangeHill
State: California
Zip Code: 99238

I want TXT_FULL_ADDR to populate with: 8277 Stemville Ave, OrangeHill California 99238


Please help me!!!!

Thanks,

~Andrew


Posted: 06 Nov 2009 05:47 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
try67
try67

Total Messages 81

Subject:Populate FULL ADDRESS from Address_Ln1 City State etc...

Try this:
event.value = this.getField("Address Line 1").value+", "+this.getField("City").value+" "+this.getField("State").value+" "+this.getField("Zip Code").value;


Posted: 15 Nov 2009 08:43 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gkaiseril
gkaiseril

Total Messages 3000

Subject:Populate FULL ADDRESS from Address_Ln1 City State etc...

Adobe with the full install of Acrobat provides some sample forms. writing the PFN section there is a form that uses individual fields to gather data and then builds various variations of this data adjusting for missing data. This is done by witting a custom function and determining which parameters were not empty strings and then properly computing the string including an optional separator.

Search for 'fillin'.

You will probably want to use the 'valueAsString' property for the Zip Code so you keep the leading zero.



DocumentFillin.PDF
Combine From Fields

Posted: 16 Nov 2009 07:35 AM
Originally Posted: 16 Nov 2009 06:58 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.