Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Drop Down Menu Help Please

Avatar

Former Community Member
Okay I am kind of new at using Adobe Acrobat. I assume what I want to do is very simple but I am dumb when it comes to figuring out how to do these kinds of things. This is ALL I want to know how to do and I have spent hours trying to figure out. I know how to create a drop down list and add selections to it. But how do you make a selection in your list input information in the form automatically from selecting it. Let me give an example:



If I had a drop down list that said:

Agent Name: (Drop down list: John Smith,Jane Jones, Peter Grant)



If I were to select John Smith is there a way to make John's email address, telephone number, address, etc.. show up automatically from selecting his name in the drop down list?



And if I were to select Jane Jones it would list her personal information in the boxes instead.



Is there anyway to do this easily? Any help would be greatly appreciated! Thank you whatever kind soul takes the time to help me on this!
3 Replies

Avatar

Level 6
Hello Bryce,



I've got a sample that does just that. The way that I've done it is a bit tricky to figure out, but it works well, and is easily extended to include as many fields as you like.



http://www.jlangdon.ca/Crysta/Crysta.pdf



Hope this helps.



Jared

Avatar

Former Community Member
I'm going to assume that you have populated your drop down of Agent Names from an XML input data file. So if that XML looked something like this:<br /><br /><AgentList><br /> <Agent><br /> <Name>John Smith</Name><br /> <Email>jobn.smith@chaos.com</Email><br /> .... (etc)<br /> </Agent><br /> <Agent><br /> <Name>Jane Jones</Name><br /> <Email>jane.jones@contol.com</Email><br /> .... (etc)<br /> </Agent><br /></AgentList><br /><br />then what you would need to do is (through script) reference the index value of the <Agent> node for the name selected in the drop down list and then retrieve the corresponding elements for that name. Something like:<br /><br />for (var j = 0; j < nAgentCount; j++) {<br /> oAgentData = oAgentList.item(j);<br /> if (oAgentData.Name.value == dropdown.rawValue {<br /> fldAgentEmail.rawValue = oAgentData.Email.value;

Avatar

Former Community Member
Here's a link to another post with a sample form that shows how to do this:



http://www.adobeforums.com/cgi-bin/webx?128@@.3bb918a9



Regards,

Dave