Can I have multiple submit buttons on the same form?

Hi!
I'm creating a web page that allows the user to build a mail filter, and I would like to have to submit buttons, one to add more fields to the filter and another one to save the filter... I could insert the two buttons on the, but I don't know how to distinguish them while doing the process of the form on a jsp page. Any ideas?

You can create additional submit buttons using Javascript buttons:
<input type='button' value='Add Fields'
onClick='this.form.action="/servlet/AddFields";this.form.submit()' />
<input type='button' value='Save Filter'
onClick='this.form.action="/servlet/SaveFilter";this.form.submit()' />
The value of "onClick" is a block of Javascript, so you can all a function to validate the form before submitting, etc.
Mike W.

Similar Messages

  • Multiple submit button on the same form

    Hi,
    I have created a PL/SQL procedure which generates a HTML form using htp and below is part of the code.
    Create or Replace PROCEDURE OBM_PROCEDURE
    htp.formOpen(OWA_UTIL.GET_OWA_SERVICE_PATH || 'insert_obm');
    htp.formSubmit(cvalue=> 'Insert');
    This creates the form and clicking Insert button calls the other procedure (insert_obm).. works fine.
    I could create other buttons like "Query" "Update" "Delete" on the same form using following.
    htp.print ('<INPUT TYPE=submit VALUE="Query"> ');
    But all the buttons call the same form (insert_obm) since they are in the same form. How do I make the buttons call different procedure?
    Thanks,
    Jee

    Hi,
    The best way to do is call a single procedure as you are doing on form submit and check which form submit was clicked ,say based on the submit value and then do the processing accordingly i.e whether it is INSERT or DELETE.
    Hope this helps,
    Thanks,
    Anu

  • HT204053 can i have multiple iCloud accounts with the same Apple id

    Can i have multiple iCloud accounts with the same Apple id

    Welcome to the Apple Community.
    No, your ID is essentially your account. You can have email aliases and you can have multiple accounts, but I don't think that's what you are asking.

  • Can I have multiple iTunes accounts for the same Ipod?

    Can I have multiple iTunes accounts for the same Ipod? What I mean is can I use multiple iTunes accounts through the same iPod for buying stuff?

    I believe you're limited to syncing DRM'd items from 5 different accounts.
    tt2

  • Can I have multiple event structures with the same event cases?

    Hello, 
    I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
    (initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
    My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
    Any help is appreciated.
    Thank you very much.
    Solved!
    Go to Solution.

    natasftw wrote:
    Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
    A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can I have multiple Ipad airs using the same i tunes account?

    Can I have mutiple Ipad Air using the same I Tunes account?

    Yes. Are you also talking about them using the same Apple/iTunes/iCloud ID for signing on?
    GB

  • Can you have multiple users working off the same Mac pro at the same time with multiple monitors but doing different things?

    I'm buying desktops for a start up company and was wondering if I could purchase a single Mac Pro and run multiple monitors to allow multiple users to work on the computer at the same time. These users would be doing different tasks but I would hope to accomplish that on a single desktop. I know that screen sharing is possible but with only one user controlling both of the screens. Thanks in advance, sorry for my apple ignorance!

    A lot of companies are buying or leasing laptops to be used at the office by day, and carried home at night.
    Some companies are doing "Bring your own device". Bring a device to receive email -- computer/smartphone/tablet you already have, or have an allowance to buy one for your use.
    If Capital is short (and when is it not) leasing computers, to be turned in a few years, can be a huge savings because the cost is expensed as incurred. The alternative is laying out cash today, but not being able to expense the cost this year. Instead, the computer expense must be recovered over their useful life (often five years) through depreciation.

  • Can I have multiple activation​s on the same computer?

    I have an Lookout Integrator package activated and running. Question is, I
    also have a 50 I/O Dev. System. Can I have both the 50 I/O and the
    Integrator package activated at the same time, and which one would come up
    when I start Lookout?

    I would think, lookout starts and uses the "best"/most featured license.
    1 window either way
    Mike 
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Can't have multiple videos open at the same time?

    I often start buffering another video when one is finished, so I usually tend to have 3-4 videos open at times. However, about a week ago, the adobe flash plugin would crash. So, I followed this guide:
    http://support.mozilla.com/en-US/kb/The+Adobe+Flash+plugin+has+crashed?style_mode=inproduct
    I also disabled the plugin container. Now, the plugin stops crashing, but firefox stops responding whenever I open a third video. Then, firefox itself crashes. Please help!
    == This happened ==
    Every time Firefox opened
    == About a week ago.

    The same thing just happened when I opened a second video instead of a third one.

  • Is there a way to have multiple responders work on the same form?

    I am creating a form that multiple people need to answer.
    For example, I work on a team where multiple people need to complete their part of the checklist for one employee.  Is there a way multiple people can work on a specific for that was already started??

    Yes, they could with the save web form data feature. You can enable it by going to Options -> Save Web Form Data and check "Enable respondents to save progress". The catch is that once a respondent completes and saves his responses, the link to retrieve his form data will be sent to his email, he may forward over to next person who needs to continue to fill out the form.
    Thanks,
    Wenlan

  • I have an InfoPath with submit button, publish the same to form library.

    Hi All,
    i have an InfoPath with submit button, publish the same to form library.
    Now, i open the form  fill it and attach some files, when i press submit button, that attachments will go to the particular document library.
    Can any one help me out.
    Thanks in Advance!

    Hi Anil,
    According to your description, my understanding is that the attachments attached to the form were submitted to an documents library.
    By default, the attachments should be attached with the InfoPath form and will not be submitted anywhere.
    There may be some customizations on the form that is to submit the attachments to the document library.
    Please check the links below if the customizations are made in the form.
    http://www.bizsupportonline.net/blog/2010/01/upload-document-sharepoint-infopath-form/
    http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
     Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • HT2905 I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
    You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
    Then resync with your iPhone and all will be well.

  • Handling Submit Button on the ADOBE form called from Web Dynpro

    Hi,
    I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.

    Hi Majunath.
    Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.
    Bind this event to the onSubmit of the Form.
    Now check the display type of the form. It will be either ActiveX or Native.
    Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).
    Drag and Drop Submit button.
    On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.
    Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.
    Now back to the event handler.
    as an example... I will use the following context node definitions
    PDF_DATA  1..1
      ACTUAL_DATA 0..n
        ATTRIB01
        ATTRIB02
    Assume the the node PDF_DATA is bound to the data source of your form.
    Now in the event handler write the foll code
    data: lo_node type ref to if_wd_context_node,
            lt_data   type wd_this->elements_actual_data.
    lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).
    lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).
    lo_node->get_static_attributes_table(
      importing
        table = lt_data ).
    This will get all the form data in the internal table lt_data.
    Now you can process the data the way you want and save it in your custom tables.
    Regards,
    Reema .
    Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM
    Hope this helps!!

  • Can i have 2 Apple IDs using the same playlist from the same pc?

    can i have 2 Apple IDs using the same playlist from the same pc?

    Easiest way is to create separate computer logins with all your own info including your own iTunes library.
    I recommend each individual not have more than one AppleID because you will have purchases on multiple accounts 
    You can use more than one AppleID in an iTunes library.
    AppleID/iTunes =used for purchases.
    iTunes library = iTunes and all media on your computer.

  • Can I store multiple bootable images in the same partition?

    Can I store multiple bootable images in the same partition or do they each need their own partition? I am going to use disk utility to create a copy of my current OSX 10.5 system on a new external drive before upgrading to Snow Leopard. Then I want to create a bootable copy of Snow Leopard. Can I create one partion large enoough to hold both images or will I need to create a separate partition for each. I have done booting off of an external hard drive and it works well. I do not know how the system sees this and thus if I store both images on the same partition, will it give me both as a boot option at startup or will it see only one?

    They will need separate partitions to be bootable

Maybe you are looking for

  • Grouping text boxes/objects

    Hi- 1) I've created a text navbar for the top of the page, consisting of 10 text boxes on a shape, with lines (from the shape menu) between each box. I now want to paste this onto every other page. 2) I've repeated this for the bottom of the page but

  • White screen upon booting. Already took it to the "Genius Bar" and they wouldn't even look at the computer.

    I have an older model MacBook that all of a sudden just stopped working. I originally got the apple logo but it would load no further than that. After reading other posts I tried the Command-Alt-P-R reboot option. It worked a few times and I was able

  • How to Make Itunes Recognize Foreign Characters in file names?

    How to Make Itunes Recognize Foreign Characters in file names? Any Body, please DELL Windows XP Pro

  • Problem in Query -How to de-concatenate the field.

    Table Structure Opt_code varchar2(10), Option varchar2(50), Menu varchar2(5) Text varchar2(200));Example Data A001      Create Credit Memo      (CREDIT PROCESSING)      ADM      |AZH|RAZ|MUN|ZAF|TMP|AD1|MRM|MKA|GQK|KHA|SHA|SHK|AAK|ALI|SHH|MTB|MTL|SAS

  • Any Soap Service / http header

    http header "SOAPAction" is not routed from proxy service to business service and to the external web service Please see follow steps that would describe the case 1. I developed a Proxy Service of type "Any Soap Service". This is because I dont want