Drop down lists and email buttons

I am creating a form and I have about twenty items in a drop down list. I was wondering if and how I can set it so each item selected will cause an email button I have to change address. i.e item 1 sets the email button to [email protected] and item 2 sets the button to [email protected] I think it has something to do with binding but I only have basic training so I am lost. Any help that you can give will be greatly appreciated . Thank you in advance

As mentioned, you can´t do that in InDesign but fortunately it´s fairly easy task to do in Acrobat Professional. You didn´t mention what are you sending, just an empty email that sender can fill in email client, whole PDF as attachment or some form data from PDF... all those options are possible by few lines of javascript in Acrobat side.
I made you a quick sample which just opens up an email client, populates email address based on choise that user has made in combobox and some custom subject and body meassage text. You can find it from my dropbox: https://dl.dropbox.com/u/17227987/sampleform.pdf
There´s only two formfields in that PDF; combobox for choosing email recipient (AA = [email protected], BB = [email protected] etc) and submit button. Check javascript code from
-combobox´s properties > Validate tab and
-button´s properties > Actions > Run a javascript.
In combobox, small javascript sets the myemail variable´s value based on the choise user makes. In Button there´s small javascript that triggers the email client and uses the value of myemail variable as a target email address.
ps. this sample probably works only in Acrobat and Adobe Reader. I have no idea how for instance MacOS Preview supports PDF javascript, probably not very well....=)

Similar Messages

  • Drop down list of email addresses missing from "Im...

    Hi folks,
    BT Yahoo's log in screen had the option of a drop down list of email addresses allowing you to select the one you wanted - this was very handy if you used several email addresses or there was only one PC in the house and various members used it.
    In the new improved email, there doesn't appear to have this option - you go into the main account (when you discover how) and the option is still ticked, but has no effect.
    I wish BT would remember that "if it ain't broke don't fix it!"
    I would be grateful to know if it is possible to still select from a list.
    Michael.

    Hi ypt,
    Yes, BT are moving their email and associated services away from Yahoo! For more information on this please go to www.bt.com/newemail
    The new BTemail service and platform will be provided by CP (Critical Path) and existing BT broadband customers will hopefully be migrated to the new email system and platform sometime in the near future once the field trials have been completed.
    The BTYahoo login portal has been closed and you can now only login to your emails by the new BT email login portal on the http://www.bt.com website.
    Cheers
    jac_95 | BT.com Help Site | BT Service Status
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Try a Search
    See if someone in the community had the same problem and how they got it resolved.

  • Creating a drop down list and linking it to Excel files

    How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
    Thanks
    Anu

    Try this in 7.0 format.
    Attachments:
    Listbox for excel files.vi ‏15 KB

  • Formula that checks drop down list and then sums

    I have a table with a drop down list with two values: '$' and 'Hr' (cell called 'PType').  There is a cell called 'Proposed' that contains numerical data. The table is dynamic and can have more cells inserted via a button within the row.  I have a totals section that I want to total the SUM of 'Proposed' if the value in 'PType' is '$'.  I can't figure out what type of statement will allow me to write this.
    For now, my solution has been a hidden column whose cell simply states:
    if (PType == "$") then
        Proposed
    endif
    Then, in the totals section, I sum this hidden column since a value outside of '$' returns a '0' and won't affect my SUM.
    I am looking for a formula I can write that does this within the totals cell instead of having two cells.
    Thanks,
    Mallard27

    Here's my take on it.
    // form1.page1.subform1.table.footer.SUM::calculate - (JavaScript, client)
    var total = 0;
    for (i=0; i < form1.page1.subform1.table._row.count; i++) {
        if (table.resolveNode("row[" + i + "].Proposed").rawValue) {
            if (table.resolveNode("row[" + i + "].PType").rawValue == "$") {
                total = total + parseFloat(table.resolveNode("row[" + i + "].Proposed").rawValue);
    this.rawValue = parseFloat(total);
    Steve

  • Drop Down Lists, and other Problems after upgrade

    Noticed the problem on http://www.autotrader.com/cars-for-sale/?expandAllOptions=true&Log=0
    Drop down lists do not respond they way they did last week - before 36.0.1 upgrade.
    Choose a brand, and then you are supposed to be able to select from a list of models. Not happening.
    I have several of the privacy add-ons (see below) but they have not changed with the upgrade (unless they too were upgraded automatically.)
    FF is becoming less and less of a joy to use as the years go by.

    Note that your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: "Open with"; do not double-click).
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can delete the user.js file if you didn't create this file yourself.
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Drop Down Lists and Value Change Events

    I have 4 drop down lists each with a set of values from the database.
    Based on the value of the first list(ValueChangeEvent only for list1) , I fetch data from the database and set the 'selected value' in the other lists.
    I have a Submit button which takes values from these 4 lists and puts it in the database.
    Problem:
    I change list 2 through list 4 and hit a Submit button which inserts all the values in the database.
    However,on Clicking the Submit button I never get the new selected values, it always refers to the previously fetched values.
    I tried to recreate this case in a Sandbox without a database , Here is the code:
    Page1.jsp
    <h:selectOneMenu id="list1" value="#{SessionBean1.selectedList1}" valueChangeListener="#{SessionBean1.list1ValueChangeListener}"  onchange="this.form.submit();" >
                   <f:selectItems id="dropdown1SelectItems" value="#{SessionBean1.list1}"/>
    </h:selectOneMenu>
      <h:selectOneMenu id="list2" value="#{SessionBean1.selectedList2}" >                           
                  <f:selectItems id="dropdown2SelectItems" value="#{SessionBean1.list2}"/>
       </h:selectOneMenu>
       <h:commandButton id="add" actionListener="#{SessionBean1.addActionListener}" value="Add"/>
        <h:inputText id="result" value="#{SessionBean1.result}" />SessionBean1
       public SessionBean1() {
            list1.add(new SelectItem("0","0"));
            list1.add(new SelectItem("1","1"));
            list1.add(new SelectItem("2","2"));
            list1.add(new SelectItem("3","3"));
            list2.add(new SelectItem("a","a"));
            list2.add(new SelectItem("b","b"));
            list2.add(new SelectItem("c","c"));
            list2.add(new SelectItem("d","d"));
            map.put("0", "a");
            map.put("1", "b");
            map.put("2", "c");
            map.put("3", "d");
        private void fetch_data(String value){
             selectedList2=map.get(value);
        public void list1ValueChangeListener(ValueChangeEvent vce){
                fetch_data(vce.getNewValue().toString());
        public void addActionListener(ActionEvent event){
            result=selectedList2;
        }I tried debugging and found that after the Value Change Event is fired only selectedList1 gets a new value during Update Model Values Phase and selectedList2 still has the old value.
    With this sand box project I cannot even get the second list to show the corresponding value.
    Any insight on this would be helpful

    Thank You Balus C,
    I just realized the reason why this is not working, I found the reason in your article Populating Child Menu's article, I am just
    putting it as a reference here.
    One concern is that the skipping of the UPDATE_MODEL_VALUES will also cause that the new values of the menu's which have immediate="true" set won't be set in the backing bean. This can partly be fixed by getting the new value from the ValueChangeEvent inside the valueChangeListener method and assign it to the appropriate property. But this won't work for other menu's of which the valueChangeListener isn't been invoked. This would cause problems if you select a child menu value and then select the parent menu back to null and then reselect it to same value again, the child menu which will show up again would remain the same selection instead of null while its child will not be rendered! To solve this we need to bind the menu's to the backing bean so that we can use UIInput#setValue() and UIInput#getValue() to set and get the actual values.+ The JSF lifecycle will set and get them in the RESTORE_VIEW and RENDER_RESPONSE phases respectively.+
    I am not sure I understand whether or not it is a limitation but the reason above is valid and I rolled back to binding my menus and getting to work with that.
    Is Binding UI components a wise idea because most of the attributes can be programmed using properties in Backing Beans unless you have to build new components?
    Thanks Again

  • How to use multiple drop down lists and do not allow duplicates.

    I am creating a roster that has multiple positions on multiple pages. I have a drop-down list that is populated with all of the employees and want to make sure that the same employee cannot be selected for multiple posts. Ideally, when one is selected in a position, that person would not be an option in the other drop-down lists. Also, when the form is published, the end user will not use the drop-down lists in order. I have found script to remove selected items, but it only works when the user makes selections in order (List1, List2, List3 etc).
    First time posting, any help would be appreciated.

    Look into the ring control.  It behaves a lot like an enum, but you can dynamically set its contents and values associated with those contents.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I restore the search bar drop down list and current search engine icon as it was in FF version 33?

    Is there a way to restore the search bar from version 33?
    I like seeing which search engine I have selected and the ability to change it with a drop down list BEFORE I highlight text, right-click, and select ' Search Google for "xxxx" '
    Any way to roll back this latest "improvement"?

    If you miss being able to switch search engines without going
    crazy with menus, try this out;
    '''[https://addons.mozilla.org/en-US/firefox/addon/context-search/ Context Search]''' {web link}
    Expands the context menu's 'Search for' item into a list of
    installed search engines, allowing you to choose the engine
    you want to use for each search.

  • How can I select from drop-down list and jumping to selected subform?

    I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
    drop-down list...A (jump to subform1)
                             B (jump to subform2)
                             C (jump to subform3)
    subform1
    subform2
    subform3
    ....end of form

    Hi,
    you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
    From a dropdowns exit event the script will look this way:
    switch (this.rawValue) {
              case "A" : xfa.host.setFocus("form1.page2.field1"); break;
              case "B" : xfa.host.setFocus("form1.page2.field1"); break;

  • Search for a record from Access Database, and populate records in Drop Down List, and View It

    Hi,
    I created a PDF form where I have open, next, previous buttons, and I'm able to connect to the access database, and it's working fine. Now, I want to be able to search by last name from the access database, and retrieve the results in a dropdown field, and then once i select the records in the drop downlist, i want to press a button to display the record. I have multiple records with the same last name. Please help, I searched the internet for hours, and can't find something similar. Your help is appreciated, and sample code is appreciated.

    <%
    int count = 0;
    while (rs1.next()){ %>
    <%if (count ==0)
    {%>
    <option value="<%=inputorthodon%>" selected >
    <%=rs1.getString("ortho_name")%></option>
    <%}
    else{%>
    <option value="<%=inputorthodon%>">
    <%=rs1.getString("ortho_name")%></option>
    <%}
    ++count;} %>
    </select>
    U may have to format this a bit. The idea is to use a count variable to put "selected" in only the first OPTION. After that, we don't have to.
    Hope this helps.

  • How to get Date value from database and display them in a drop down list?

    Hello.
    In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
    All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
    SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
    Thanks,
    Rightbrainer.

    Hi
    What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
    package jcombobox;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.swing.*;
    public class Main extends JApplet implements ActionListener {
        private Vector<SomeClass> list = new Vector<SomeClass>();
        private JComboBox dropDownList = new JComboBox(list);
        private JButton addButton = new JButton("add");
        private JButton remove = new JButton("remove");
        private JTextField input = new JTextField(10);
        private JPanel buttons = new JPanel();
        public Main() {
            addButton.addActionListener(this);
            remove.addActionListener(this);
            input.addActionListener(this);
            buttons.setLayout(new FlowLayout());
            buttons.add(addButton);
            buttons.add(remove);
            add(dropDownList, "North");
            add(input, "Center");
            add(buttons, "South");
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == addButton) {
                list.addElement(new SomeClass(input.getText()));
                input.setText("");
            } else if (e.getSource() == remove) {
                int selected = dropDownList.getSelectedIndex();
                dropDownList.removeItemAt(selected);
        public void init(String[] args) {
            setSize(400,300);
            getContentPane().setLayout(new BorderLayout());
            getContentPane().add(new Main());
    }And that "SomeClass" is show here
    package jcombobox;
    public class SomeClass {
        private String text;
        public SomeClass(String input) {
            text = input;
        public String toString() {
            return text;
    }One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
    When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
    The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
    If you need any of the code specified more, please let me know. Ill be glad to,

  • Multi-Select (drop down list) data not saving upon save/email

    I have created a drop down list and modified it to allow multiple selection, i.e.
    form1.BusinessAreaTable[1].Row1[4].ERP::ready:form - (JavaScript, client)
    this.ui.choiceList.open= "multiSelect"; this.rawValue
    = "-1"
    However, when I go to save the form and/or email the list fields erase and the data / items I selected are gone.
    Please help, thanks.

    Okay, I have the form now.
    You are using script in the form Ready event to make a dropdown list mimic a listbox. This is totally unnecessary. I have changed the ERP to a multi-select listbox in the Object > Field palette and commented out the script.
    Here is the form: https://acrobat.com/#d=K*P4xKIA4kkqEHGTpgyvvw
    The form has not been Reader Enabled, so user with Reader will not be able to save the data inputted or submit by email in PDF format:
    Summary here:
    http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-acrobat-and-reader/
    Niall

  • How to add Check box to a static Drop down list (bases on a selection list) and allow mulity select in it?

    Dear All,
    I created a text field in my project (Light switch 201, C#), this text field has a static list which I filled manually. when I click in this text box I get a dropp down list which allow me to chose only one value from it.
    Now what I want to do is to add a check box in this drop down list and allow mulity selection from this list. My list looks as follow:
    Can anyone help me :) ? 
    Thanks all,
    Zayed

    Something like this:
    http://www.codeproject.com/Tips/452756/Add-checkbox-inside-combobox-in-Silverlight

  • Drop down lists are active in PDF when received by email

    Hello,
    I have a form with drop down lists and the form is set so that when the user submits it, the PDF form is sent, not the XML file. The problem is that when I receive the PDF form, the drop down lists are active and I can change the items in the list. Is there a way to disable this so that when the PDF form is received no changes to the form can be made?
    Thank you.

    I think you need to have a flag in a hidden field that indicates that the form has been submitted.  You could set that flag on the form's pre-submit event.  On the form's initialize event, check the flag.  If it's been set (i.e. the form has been submitted before), programatically lock down the form.  Here's a tidy little (untested) recursive function that locks down the form:<br /><br />lockDown(xfa.form.nodes);<br /><br />function lockDown(oNodes) {<br />     for (var i=0; i<oNodes.length; i++) {<br />          if (oNodes.item(i).className == "subform")<br />               lockDown(oNodes.item(i).nodes);<br />          else               <br />               oNodes.item(i).access = "readOnly";<br />     }<br />}<br /><br />Jared Langdon<br />http://www.jlangdon.ca

  • Drop down lists are active in form received by email

    Hello,
    I have a form with drop down lists and the form is set so that when the user submits it, the PDF form is sent, not the XML file. The problem is that when I receive the PDF form, the drop down lists are active and I can change the items in the list. Is there a way to disable this so that when the PDF form is received no changes to the form can be made?
    Thank you.

    I think you need to have a flag in a hidden field that indicates that the form has been submitted.  You could set that flag on the form's pre-submit event.  On the form's initialize event, check the flag.  If it's been set (i.e. the form has been submitted before), programatically lock down the form.  Here's a tidy little (untested) recursive function that locks down the form:<br /><br />lockDown(xfa.form.nodes);<br /><br />function lockDown(oNodes) {<br />     for (var i=0; i<oNodes.length; i++) {<br />          if (oNodes.item(i).className == "subform")<br />               lockDown(oNodes.item(i).nodes);<br />          else               <br />               oNodes.item(i).access = "readOnly";<br />     }<br />}<br /><br />Jared Langdon<br />http://www.jlangdon.ca

Maybe you are looking for