Forms - Submitting to different recipients depending on the selection

I have a form which I need to submit to different email
addresses depending on an option selected in one of the dropdown
boxes. This MUST be done on a client-side form.
Any ideas on how to go about this?
I want to avoid creating a different form for every scenario.
Thankyou

Of course, it completely fails if the computers have js
disabled. For an
environment where there is no access to server scripting, I'd
guess that
this is also a likely configuration.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"digitalus media" <[email protected]> wrote
in message
news:edqhi7$qnu$[email protected]..
> You can set the url or address of a hyperlink with
javascript.
>
> Try this:
>
>
> <html>
>
> <head>
> <script type="text/javascript">
> function myHref(email){
> document.getElementById('myLink').href='mailto:'+email;
> }
> </script>
> </head>
>
> <body>
>
> <p>Select a recipient</p>
>
> <form>
> <select name="select"
onchange="myHref(this.value);">
> <option
value='[email protected]'>Administrator</option>
> <option value='[email protected]'>Bill</option>
> </select>
> </form>
>
> <p><a id="myLink"
href="mailto:[email protected]">send message</a></p>
>
> </body>
>
> </html>
>

Similar Messages

  • ALV GRID WITH SUMMATORIES DEPEND OF THE SELECTION

    Hi Experts.
    I have a form, in which depend of the selection, I show to user a fieldcatalog with the data (query) that the user want to see in that moment ...
    The problem is that the user want to see one field (amount, sum total (money) ...etc) with summatories, group by date, person...or other depend of the selection he has done in the select dynpro.
    How can I do it when I show the ALV??... The user don't want to use the option to make a lot of select dispositions in the ALV..., he want to see the disposition of the data depend the selection he do in the select dynpro.
    I see when I create the fieldcatalog to the ALV GRID, there is a field ... do_sum, I have marked it, in the field which I want to do a summatory but don't do anything in the ALV when display.... and don't find how indicate in the fieldcatalog the field which I wan't group by...
    Other options, that I have thought it's to make a lot of dispositions in ALV, and when display de ALV try to get the disposition that I want ... but I haven't did it.
    Thanks.

    Hi all,
    it is maybe too late to answer this question but I hope it can serve someone who bumps into this problem in the future.
    I managed to activate the functions with the following code:
    DATA alv       TYPE REF TO cl_salv_table.
    DATA: lo_functions TYPE REF TO cl_salv_functions_list.
    DATA: lo_funcs TYPE salv_t_ui_func.
    DATA: lo_func TYPE salv_s_ui_func.
      cl_salv_table=>factory(
           IMPORTING r_salv_table = alv
           CHANGING  t_table      = <fs> ).
    *   Default Functions
         lo_functions = alv->get_functions( ).
         lo_funcs = lo_functions->get_functions( ).
    * loop through all functions and enable them and set them visible.
    * here u can also activate separate functions if you check the name with the method from r_function (CL_SALV_FUNCTION->GET_NAME)
         LOOP AT lo_funcs INTO lo_func.
           lo_func-r_function->set_enable( value = 'X' ).
           lo_func-r_function->set_visible( value = 'X' ).
         ENDLOOP.
         alv->display( ).
    Cheers,
    Ilina

  • Show different dropdownlists according to the selected value

    Hi All,
    I need pop up a different dropdownlist according to the selected item in one dropdownlist.
    .e.g. if I select state in one dropdownlist, another dropdownlist contains all the states will show up beside it.
    Any one can help me?
    Thanks a lot

    There are two ways of doing it. Both involve javascript
    1 - capture the onchange event of the first dropdown. Submit the page, and reload it with the correct values for the second dropdown list
    2 - If there aren't that many different options, you can download all the different option lists into your page. Capture the onchange event of the first dropdown, and then use javascript to set the values in the second dropdown box.
    Both have pros and cons. The first option requires a page refresh. The second one requires that you download all possible options to the page.
    Good luck,
    evnafets

  • What is the best approach to render different images depending on the device?

    I have been looking around for a few days but I couldnt find a good way to render different image rendition, depending on the device.
    I have one* mobile site (from a desktop site blueprint). I use the mobileimage components in several places of the site. The problem is that some images need to be different (different resolutions and shape) depending on which device is trying to access the content.
    I want one image for ipad , and one image for iphone.
    Is there any solution for this, built-in CQ?
    I have tried reading about the DAM renditions... but the image component is not aware of them, and does not use them as far as I know.
    Any help with this is really appreciated
    Thanks!

    Hi Horacio,
    I'm not sure this will work, because I've never tried it.  Somewhere I read using BrowserMap you can achieve it.  Have you looked at  http://dev.day.com/docs/en/cq/current/developing/mobile.html
    Thanks,
    Sham

  • Filling a field with different values depends on the country by value help

    dear experts,
                          Could any body help me out ?
    i do have a requirement that in the Screen, iam having a field say Tshirt size, which have to be populated differntly according to the country in the value help. how can i do that.
    iam mentioning what i have done:
    1. defined field and selected From Dictionary Attribute in the screen.
    2.maintained
    Field ztab-fieldname  in the chain endchain.
    please do the needful as hoe come the filedname is populated with value help for different countries?
    Edited by: Murthy Ganti on Dec 17, 2008 12:00 PM

    Hi Murty,
    You need to create a View on the different field set which might be composed across different Tables. Once the view is created you need to create a Search Help using that View by selecting the fields that will come in the Help. Below is the step by step Documentation for the Search Help Creation.
    Link 1
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Link 2
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    But after going through your statement, I have one concern. As you mentioned that you don't have any access for the calling FM in a Report Program, then I doubt whether you will have authorization for the Data Dictionary Object creation also. Just check the Roles and Authorization assigned to your user. You need the S_DEVELOP Authorization Object for any new create.
    Hope this helps.
    Thanks,
    Samantak

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • Branch to different page based on the selection of select list

    Hi All,
    I have to create an application in which i have a form containing a field with static lov's ...
    now i want that whenever i click on a save button it branches to some page based on the selected value of lov of that field...
    like if i select marketing from lov and press save button then it will branch me to marketing page...
    so how can i achieve that in my apex application
    please help if anyone knows the answer

    in the page branch, change the page to *&PX_LOV_NAME.*
    change X to page number and the LOV_NAME to the name of your select list
    Don't forget to add the . on the end
    Hope this helps

  • Populating a Field depending on the selection of a dropdownlist in adobe fo

    Hi,
    I am not able to populate a Text Field based on the selection of a dropdownlist in Adobe forms in WebDynPro.
    Pls let me know how to do it????
    Thanks in Advance,
    Sameer

    Hi Sameer,
    There is one way to achieve this.
    You can write some javascript on event of selecting value in dropdown.
    Open your PDF form.Then goto menu "palettes" and then choose "script editor".
    Now, select your dropdwon element.
    It will show some line of scripting in Javascript of Formcalc.
    Here, you can write your JAVA script for displaying values in textview.
    If it helps then don't forget to award points
    Regards,
    Bhavik

  • How to populate the second combo box by depending on the selection in 1st?

    I have two combo boxes, both of data in the lists come from the database. The list in the second will be changed when the selection is changed in the first one. I am trying to do query again in the ActionPerform function, unfortunately the list in second one doesn't change.
    I am learning Swing now, I really appreciate for any suggestions!
    Thanks

    camickr,
    I have another question for the tab pane. Now I have to remove the tab and add tab for updating the tab pane. I wonder if there is other way to do it. I really appreciate your help!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    import java.net.URL;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    public class test_tabpane extends JPanel implements ActionListener {
         private JPanel MainPane;
         private JComboBox combobox2;
         private JTabbedPane TabbedPane;
         private JComponent panel1;
         private JComponent panel2;
         private String [] resources ={"ZZAA", "ZZAB", "ZZAC", "ZZAD"};
         private String selected_resource = "";
         public test_tabpane() {
              MainPane = new JPanel();
            MainPane.setOpaque(true);
            MainPane.setPreferredSize(new Dimension(600, 70));
            MainPane.setBorder(BorderFactory.createRaisedBevelBorder());
            combobox2 = new JComboBox(resources);
            combobox2.addActionListener(this);
            MainPane.add(combobox2);
            add(MainPane);
            UIManager.put("TabbedPane.tabInsets", new Insets(5,5,5,5));
            TabbedPane = new JTabbedPane();
            panel1 = makeTextPanel(resources[0]);
            TabbedPane.addTab("Language/Notes", panel1);
            panel2= makeTextPanel(resources[0]);
            TabbedPane.addTab("Relations/Coverage", panel2);
            TabbedPane.setPreferredSize(new Dimension(600, 340));
            TabbedPane.setFont(new Font("ariel", Font.BOLD, 11));
            TabbedPane.setSize(600, 340);
            add(TabbedPane);
         protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
        //    panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
         public void actionPerformed(ActionEvent e) {
                   JComboBox cb = (JComboBox)e.getSource();
                   if ("comboBoxChanged".equals(e.getActionCommand()))
                   //   if ("comboBoxEdited".equals(e.getActionCommand()))
                   //     System.out.println("in action:" + (String)cb.getSelectedItem());
                        String selected_string = (String)cb.getSelectedItem();
                        StringTokenizer st = new StringTokenizer(selected_string, "|");
                        selected_resource = st.nextToken();
                        updateTabbedPanes(selected_resource);
        protected void updateTabbedPanes(String selected_string) {
             panel1 = makeTextPanel(selected_string + " in Language/Notes");
             int index = TabbedPane.indexOfTab("Language/Notes");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Language/Notes", null, panel1, "", index);
             panel2 = makeTextPanel(selected_string + " in Relations/Coverage");
             index = TabbedPane.indexOfTab("Relations/Coverage");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Relations/Coverage", null, panel2, "", index);
        * Create the GUI and show it.  For thread safety,
        * this method should be invoked from the
        * event-dispatching thread.
       private static void createAndShowGUI() {
               JFrame.setDefaultLookAndFeelDecorated(false);
           //Create and set up the window.
             JFrame frame = new JFrame("test");
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           //Create and set up the content pane.
           JComponent ContentPane = new test_tabpane();
           ContentPane.setOpaque(true); //content panes must be opaque
           frame.setContentPane(ContentPane);
           //centers a frame onscreen // it is a problem for wide screen
           //   frame.setLocationRelativeTo(null);
           frame.setLocation(300, 120);
           frame.setSize(1024, 768);
           frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
           //Display the window.
          frame.pack();
           frame.setVisible(true);
          * @param args
          * This is main function.
         public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Work with a table in different schema depending on the user group

    I have 2 groups of users user_group1, user_group2 and also two different schemas schema_group1,schema_group2 containing the same table names with a different content.
    Now, i have to write a stored procedure which takes user name as input and depending on which group the user belongs to, i want to work with table in that user_group schema.  i.e.(if user_group1 then "schema_group1"."table". if user_group2 then "schema_group2"."table" )
    i tried to set schema using dynamic sql but it seems that the schema is changing only after the end of the stored procedure.

    yes, i do maintain a table to map user groups with schema name.
    i have two tables:
    table-1: USERS(user_name, group_name)
    table-2: GET_SCHEMA(group_name, schema_name)
    // Just to make it simple(for testing purpose), i am directly assigning the schema_name inside the stored procedure.
    CREATE PROCEDURE "TEJA"."RETURN_SCHEMA_OF_USER" (IN IN_USER_NAME VARCHAR(30))
    LANGUAGE SQLSCRIPT
    AS
    BEGIN
         DECLARE VAR_USER_GROUP VARCHAR(20);
         --DECLARE VAR_SCHEMA_NAME VARCHAR(20);
         DECLARE SCHEMA_NAME VARCHAR(20);
         DECLARE SQL_STATEMENT VARCHAR(200);
         DECLARE VAR_TEMP VARCHAR(200);
         SELECT USER_GROUP INTO VAR_USER_GROUP FROM "TEJA"."USERS" WHERE USER_NAME =      IN_USER_NAME;
         --SELECT VAR_USER_GROUP AS USER_GRP FROM DUMMY;
         -- SELECT GROUP_NAME INTO VAR_SCHEMA_NAME FROM GET_SCHEMA WHERE GROUP_NAME =      VAR_USER_GROUP;
         -- Instead of above statement, i am directly assigning the schema_name below
         IF VAR_USER_GROUP = 'UNION' THEN
                SCHEMA_NAME := 'USER_UNION';
         ELSE
                SCHEMA_NAME := 'USER_CORPORATE';
         END IF;
         SQL_STATEMENT := 'SELECT * FROM "'||:SCHEMA_NAME||'"."USER_DETAILS"';
         --I have USER_DETAILS table in both the schemas.
         --SQL_STATEMENT := 'SET SCHEMA ' || :SCHEMA_NAME || ' ';
         --sets the schema after the stored procedure is executed.
         EXECUTE IMMEDIATE SQL_STATEMENT;
    END;
    This dynamic sql statement does the job for me, but i don't want to use dynamic sql in all my stored procedures. I need this kind of functionality in almost all of my stored procedures. So, i am looking for a better approach.  I really appreciate your valuable inputs.
    Thank you

  • How to make a form direct to different pages depending on which answers you select?

    I am creating an online application.  Before the user can get access to the application, I want to create a pre-qualification form.  I need to create it to where if they answer a certain form field one way, it will take them to a page that says "Sorry, we are not accepting applications at this time" and if they answer the form field another way, it will take them to the Application Form to fill out.
    How do I set it up to where when they hit submit, it directs them to the appropriate page?
    I have no idea what this is called and what I should search for online to find help on this matter.
    Thanks,
    Michael

    Hi
    First you need to decide on which scripting language you are going to use and any other requirements you may have.
    Simply put, (and this is very simply put) you would filter the answers using your scripting language using a if/else or switch statement to decide if to redirect, (or not).
    PZ

  • Print Adobe form pages on different printers based on the condition

    Hi All,
    I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer.
    What solution I was thinking was, in print program call the adobe form twice with flag as a importing parameter. For the first call the flag value will be set and for second run a blank value will be passed in flag.
    If flag is set then call make the first page "visible" and if flag is cleared then "hide" the first page and make the remaining pages "visible".
    But as its an item data which is designed on "Design" view I am not able to write a script to hide the page. Any suggestion you can give to resolve this issue.
    Thanks,
    Mihika.

    If it is OK to have the default printer defined/maintained in the user master (like tcode Su01 or System > User profile > Own data, Then the standard logic may suit your needs. I think you will need to undo some config for the whs. Te standard logic works as detailed below. the system needs to get to #4 below, then the SAP userid printer will be selected.
    the system proceeds with automatic printer determination as described below Config Tcode is OMLV.
    1) First the system checks whether a printer is set in the configuration "Printer-Movement". If so, the printer determination is complete at  this point.                                                         
    2) If not, the system uses the parameter "PriSrcTyp" defined in the configuration "Printer-Movement" to decide how it will proceed.  If the parameter is set here, the system checks if a printer is defined in the setting "Printer Picking Area" and then proposes this printer.                                                            
    3) If the system finds no printer, it searches in the setting "Printer - Storage Type" and uses this, if a printer is set.                   
    4) If the system cannot find a printer using the methods described above it selects the printer defined in the user master of the user currently logged on.                                                
    5) If no printer is defined here, the system automatically proposes LP01
    This writes the data to the spool file.

  • Create a form that can either end in "Submit" or "Process Payment" depending on the selected fields

    I have designed a Golf Tournament Registration form that includes a multiple choice field with 4 payment options
    1) Pay Online
    2) Mail a Check
    3) Direct Deposit
    4) Other
    When Option 1 is selected, the form should redirect the registee to the PayPal payments page that has already loaded personal information from the earlier fields
    When Option 2, 3, & 4 are selected, the form should redirect the registee to applicable information about how to proceed
    HOWEVER: the submission button at the bottom of Options 2-4 still reads "Proceed to Payment" which is confusing for golf participants who have elected to mail a check.
    *Is there a way to customize the submission button to elimate this possible confusion?

    So I see that I am not the only one with this question and that part of my question has been answered here: http://forums.adobe.com/message/4399918#4399918#4399918
    HOWEVER: is there no way to change the wording on the PayPal "Proceed to Checkout" button?  I just want it to say "Submit"

  • How to open different files depending on the case

    Hi
    I have 3 cases within a case structure.
    When I select a first case, I need a certain VI to start.(I have done this by just dragging the VI within that case)
    But when I select the 2nd case, I need to an executable file to pop up, but I am not able to drag it within the case structure beacuse when I select something other than a than a vi, it gives me the follwing error.
    LabVIEW: File is not a resource file
    The file Test.exe cannot be loaded.
    Also, I need to open a text file, if I choose the 3rd case. I am not able to this also, as I end up getting the same error.
    Can someone help me to solve this problem?
    Thanks in advance
    Solved!
    Go to Solution.

    To call an executable you will have to use "System Exec.vi"
    To open text file you can use same "System Exec.vi" and give path of text file to open to "Command Line" input of the vi.
    Read help file so as to understand the function of "System Exec.vi"
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Adress bar search uses a different engine depending on the amount of words entered

    I've been trying to figure this one out for a bit... If I enter one word into the adress bar - gamespot for instance - it takes me to a bing.com search. As opposed to the gamespot.com site as it has always done up until a few hours ago. Now, at first I figured this was just a matter of firefox changing the default, so looked for a solution to this. The given solution in most cases is to change to change keyword.url - which I have done. It is set to the google url that according to most of the sites I checked is supposed to work. However, typing 'gamespot' still gives me a bing search (not a google search or the site in question).
    But here's the kicker; if I type 'game spot' it takes me to the gamespot.com website. So I tried something else. 'facebook' vs. 'face book' - same thing. 'fastcars' - bing search, 'fast cars' - google search. 'firefox' - bing.com search, 'fire fox' - mozilla homepage... I take it you see what I mean by now...
    I have no idea what is going on here. Seems a bit of an odd effect for any kind of malware - allthough I'm running a full scan as I type, just in case...
    == This happened ==
    Every time Firefox opened
    == no idea what triggered it. Just happened all of a sudden this evening. After using the comp all day without it acting like this - and no new installs that I know of.

    Hi,
    >>A CHAR datatype and VARCHAR2 datatype are stored identically (eg: the word 'WORD' stored in a CHAR(4) and a varchar2(4) consume exactly the same amount of space on disk, both have leading byte counts).
    Ok, but on the other hands:
    SGMS@ORACLE10> create table x (name char(10), name2 varchar2(10));
    Table created.
    SGMS@ORACLE10> insert into  x values ('hello','hello');
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select vsize(name),vsize(name2) from x;
    VSIZE(NAME) VSIZE(NAME2)
             10            5
    SGMS@ORACLE10> select dump(name),dump(name2) from x;
    DUMP(NAME)                                         DUMP(NAME2)
    Typ=96 Len=10: 104,101,108,108,111,32,32,32,32,32  Typ=1 Len=5: 104,101,108,108,111Cheers

Maybe you are looking for