Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Inserting A Line Break In A Drop Down Or Populating Multiple Fields

Avatar

Level 1

I am not a programmer and very new to Adobe LiveCycle ES.
I created a Check Request Form for my company. In one section,  I have a particular drop-down list that contains the following info:

Company Name, Address, City, State, Zip Code

The user of this form wants to change this format. They want me to take the data that is in the single pull-down list mentioned above and break it into 4 different boxes:

Company Name

Address
City, State

Zip

Is there a way to take the data that is in the 1st format (1 line of data) and insert a line break so that the address falls to the 2nd box , then insert another line break so that the City and State fall to the 3rd box and so on.

If not, can you suggest a way as to  how I can go about creating/entering the Company Name on the form so that it pulls in the correct Address, City, State, Zip and populates the appropriate boxes?

Many Thanks!

Dawn

1 Reply

Avatar

Level 10

There is a javascript function that will allow you to split the string into component parts. It puts these parts into an array. Here is some sample code that should give you the idea. Assuming TextField1 has the compete string and TextField2 is the field you want to enter the separted string into.

Paul