I'm trying to make a form in which I have the following fields:
Now I want to do a drop down list because I have several contacts, but I want it so that when I chose the person in the "To:" field, it will put the company, email and fax for that person in the rest of the fields. I put the details into drop down menus for the rest of the fields but I can't get it to relate joe shmoe to his email firstname.lastname@example.org and so on.
Where is the information going to reside that ties the To, Company, Emal and Fax to the user that is selected in the dropdown? Are you going to hard code it or is it in a database somewhere, or maybe a Web Service call?
Once we know that we can point you in the right direction.
Sorry for being so annoying, but I'm really really new to using forms, I'm not too bad with computers but I'm just not sure where the change event of the drop down list would be or how I can get to it. Could you please explain a bit more?
I would like to hardcode this same example except there are 500 records or more. For example, the user puts the Product Code in the textbox and then the description that matches that Product Code should automatically populate in the Description textbox (which will be read-only).
However, I basically want to put the Product Code and Description into an invisible list box and then loop through the list box to match up the description for the product code the user enters and put that information into the description textbox.
The manager wants no DB connection for these forms.
So you will hardcode the values in the listbox ....I sure hope one does not change. I would not use a list box because you will have to loop through each enter to get your match. Can you not use some sort of array structure with and index to make it easier and more efficient to make the match?
If you look at the dynamic interactive/purchase order sample that ships with the product it does something similar with states and provinces in one dropdown and countries in the other. That sample can be found in the designer install directory/EN\Samples\Forms\Purchase Order\Dynamic Interactive\Forms
Hi, Paul: Is there any way you can take a look at my sample code for this array? I placed it inside of the Purchase Order Sample and tried it that way, but it will not work. I am not sure what I am not doing since I followed the sample itself.
I am a newby! I'm trying to do a similar thing but with postcodes. From a dropdown box our clients can select their town. I would like for the postcode to automatically be entered in accordance with the town select.
If you have Acrobat you can get the info from a DB or a Web Service. You can do the same thing with Reader but th eform must be Reader Extended by Livecycle Reader Extensions product to allow this connections to happen. If you do not want to go down that path then your other option is to create a data file where you can import them or you can code them into the form.