These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Dropdown/Email

Fren
Registered: Jan 4 2008
Posts: 4

I am new to Adobe Acrobat Pro 8, LiveCycle, and JavaScript. I have created a grading form for use on a tablet pc which I would like to send to students as instantaneous feedback following certain activities in a educational laboratory setting. I have created a dropdown box and added all 90 student email addresses via List Items in the Object pallette. How do I create the email submit function so that I can choose a student and immediately send them their graded form? Thank you!

My Product Information:
LiveCycle Designer, Windows
sconforms
Expert
Registered: Jul 10 2007
Posts: 92
You'll need to set the "target" attribute of the "submit" element found within the submit button's "click event" element using the following syntax: "mailto:email [at] address [dot] com".The following JavaScript, set in the drop down list's Change event, will do this:

var email = xfa.event.newText;var clickEvent = EmailSubmitButton1.resolveNode("#event.[activity == \"click\"]");clickEvent.submit.target = "mailto:" + email;
The first line gets the selected email address from the drop down list. The second line finds the "click event" element of the submit button and the third line sets the "target" attribute value to the selected email address.

Stefan Cameron obtained his bachelor's degree with Honors in Computer Science at the University of Ottawa and is a Computer Scientist working on Adobe's LiveCycle server products, in particular on LiveCycle Designer ES for the past 5 years.

poolmwv
Registered: Jul 9 2008
Posts: 1
I can get the above to work if I actually put the e-mail addresses in the drop down list. I would like to have a particular Division appear for the customer, not the e-mail address. I have been shooting blind on this for a couple of days. I have seen some other postings on the net that also refer to putting it in the click event of the submit button, but the "click" option is grayed out on a submit button!

Someone showed me how I could put the email addresses as the value in the "Bindings" area but I don't know how to reference it if I do.

I have never used javascript at all, but I tried an if statement to change the email variable to the actual email address, but if that would have worked, I apparently didn't have the syntax correct.

So I want the Drop Down to list Division1, Division2, Division3, but I want it to actually email to JoeBlow [at] Division1 [dot] org, CindySmith [at] Division2 [dot] org and AnnaMariaAlbergetti [at] Division3 [dot] org.
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Check out this [url=https://share.acrobat.com/adc/document.do?docid=b8f2b6d3-edcf-4503-bc5b-d934db9e9e24]example[/url] from Paul Guerette in the Designer ES forum. It's an XDP file so it needs to be opened in Designer.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.