Working with 2  submit buttons in a html form

I have 2 submit buttons in a form. I will upload a file and save in a filepath in server when I click on one "upload" button. I want to use this file path in the code when I click on another button called"Process".  When I click the process nothing is happening with dump in below code.Form  submits to itself. Is there any better way to do this. Thanks in advance.
<table width="40%" border="0" style="border: 1px solid black;">
          <form  name="uploadform" action="processfile.cfm" enctype="multipart/form-data"  method="post">
          <tr>
                    <td><input type="file"  name="FileContents" size="25">
                        <input type="button" name="action" id="action" value="Upload">
                    </td>
          </tr>
          <tr>
                    <td align="middle">
                              <input type="button" name="submitaction" id="process" value="Process">
                      </td>
          </tr>
          </form>
    </table>
<cfset variables.filepath ="">
<cfif isdefined("form.action") AND form.action eq "upload">
             <cffile action = "upload"  fileField = "FileContents" destination = "C:\test\" accept = "text/plain" nameConflict="overwrite">
          <cfset variables.filepath= "C:\test\#cffile.serverFile#">
<cfelseif isdefined("form.submitaction") AND form.submitaction eq "process">
          <cfdump var="#variables.filepath#">
</cfif>

Hi tburra,
You can try the below code. This dumps the value of the path as well.
<cfif isDefined('Form.tmpfile1')> <cfset root = ExpandPath("/Upload")><!---location where file should be uploaded---> <cfset filename=GetFileFromPath(Form.tmpFile1)> <cfset FileExt=ListLast(filename,".")> <cfset variables.filepath =""> <cfset filename = "BidDocument1." & FileExt>  <cffile action="upload" filefield="BidDoc1" destination="C:\Upload\" nameconflict="overwrite" accept="application/pdf,application/msword,application/vnd.ms-excel,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"> <cfset variables.filepath= "C:\test\#cffile.serverFile#"> <cfdump var="#variables.filepath#"> </cfif> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>cffileupload Document</title> <form name="form1" enctype="multipart/form-data" method="post"> <input type="hidden" name="tmpfile1" value="" /> <input  type="file"  name="BidDoc1"  onchange="setFile(this.form);" /> <input type="submit" name="save1" value="Upload" /> </form> <button onclick="location.href='processfile.cfm'">Process</button> </html>
This should help you.
Regards,
Anit Kumar

Similar Messages

  • What action besides the mailto: one will work with a submit button to activate the required fields?

    I have a submit button that uses the mailto: function to activate the required fields property on a pdf fillable form, but our users would prefer that the form not generate an email. Please let me know what I could replace the mailto: action with so the submit button will only activate the required fields proptery.
    Thanks for the help!
    Ken K. 

    Whatever is running on the server does not have to be PHP, any mechanism
    that can accept a HTTP request can handle your form content. You have a
    choice between using the "normal" HTML forms submission format, or you can
    submit a FDF or XFDF file to your server. I've used Perl, PHP, Microsoft's
    .NET and good old Unix shell scripts to accept and process PDF forms
    submissions.
    If you don't know how to implement the server portion, you will need to
    work with somebody who can do that for you. How this is best done depends
    on what server system you are using, and potentially what limitations your
    web hosting provider is forcing you to live with.
    Karl Heinz Kremer

  • Submit button  from Interactive adobe form in Web Dynpro ABAP

    Hi all,
    We seem to be having a problem with the 'submit' button on the Interactive Form for the Web Dynpro ABAP.  The submit button is from the Web Dynpro active X or web Dynpro Native in the form designer. The submit button doesn't trigger the action in Web Dynpro. we are currently running on support pack 9 for the ABAP stack. We have Internet Explorer browser version 6.  Could someone tell me if there are requirements for the IE version that will work in conjunction with a particular ABAP stack version.  And, are there specific IE security settings or administrative privilages required with this version of the ABAP stack.  Or, any other ideas as to why this does not seem to work. 
    Thanks in advance,
    Michelle Hong

    Hi Michelle,
    Could you tell me how you resolved the problem - as I'm facing exactly the same issue!
    Many Thanks
    Christine

  • My submit button on my PDF form is greyed out (will not work) after posting link to PDF on my WordPress website. It works in Acrobat Reader just fine.

    This is where you can see the form as clicked through to from the WordPress website page:
    http://pinetreeplayers.com/ptp_new/wp-content/uploads/2014/12/submit-a-play.pdf
    The PDF file was created in Acrobat 11, with a submit button. The submit button is actioned to send the form via email. It works perfectly by itself if the form is opened in Acrobat Reader, but once I upload the PDF to my WordPress site the submit button is greyed out, and will not complete the action to send on-click.
    How can I fix this please - can anyone offer advice?

    Yes. They need to download Reader and then disable Google Chrome's internal PDF viewer and enable Adobe Reader.
    FireFox should also be configured to use Adobe Reader and not the internal PDF viewer.
    The internal viewers are created to process PDF documents by not including the features and code to process PDF forms.

  • Is it possible to set up a form with a submit button where the data in the fields gets added to an existing excel file, just like 'collect response' but without connecting to the internet?

    I have a form that I want to use to collect peoples information with a submit button. I am trying to get the data that gets inserted to be added to an existing excel doc when the submit button gets hit, the form then resets and someone else can fill in the same form, hit submit and his data gets added to the existing data in the same excel doc. It is basically the same as the 'collecting response' option but without having to be online. The form is going to be used at a boat-show and I am going to get people to fill it out on an iPad. Does anybody know if this is possible?

    You could connect a bunch of 3700s to each computer and do this . 
    Or...since you're the one who monitors the monthly limit, you could restrict an individual's internet access once you see that you guys are coming too close to the cap. 
    I don't work for Cisco. I'm just here to help.

  • Sample Custom Bean with Override Submit button

    Does some one have a sample code with an override logic for button.
    Please do not share the code of the Dev Guide and the OIM assets published.

    I have created a Custom Managed Bean, which is associated with My Information Page.My Bean reads a UDF field which has a comma seprated value of EMails and populates a drop down list on the My Information Page.
    This works fine. Now the next step is to implement the value change listener which catches the change/selection done on the drop down list and overriding of Apply Button to save the selected field on User's profile.
    I am not able to do it,even after spending quite bit of time on this. Has any one done something similar and can share code.I need code for Value change Listener and Override Submit button.
    The code which is published in assests page and Dev Guide is not working.
    My Submit button code is
    public void submitActionValidator(ActionEvent actionEvent) {
    String methodName="submitActionValidator";
    System.out.println("Inside"+methodName+"**********");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Inside" methodName"2**********");
    // Get the sepecific list binding
    JUCtrlListBinding listBinding = (JUCtrlListBinding)bindings.get("Custom Dropdown");
    System.out.println(methodName+"MNSCUInside SubmitAction3 **********");
    // Get the value which is currently selected
    Object emailSelected = listBinding.getSelectedValue();
    System.out.println(methodName+"MNSCUInside SubmitAction Avlidator***********************************");
    // emailSelected =
    // (RichSelectOneChoice)actionEvent.getSource();
    System.out.println(methodName+"MNSCUemailSelected***********************************:"+emailSelected);
    if (emailSelected != null) {
    preffemail = emailSelected.toString();
    System.out.println(methodName+"preffemail***********************************"+preffemail);
    FacesContext facesContext = FacesContext.getCurrentInstance();
    FacesUtils.setAttributeBindingValue(EMAIL_ATTRIBUTE,
    preffemail);
    // execute original submit button action listener
    MethodExpression originalActionListener =
    FacesUtils.getMethodExpressionFromEL("#{backingBeanScope.MyInformationUIBean.applyButton}",
    null,
    new Class[] { ActionEvent.class });
    originalActionListener.invoke(FacesUtils.getELContext(),new Object[] {actionEvent});
    System.out.println("Exit methodName **********");
    }

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • Minimize button doesnt work with mouse right button after openning a new tab in windows 8.1 with firefox nightly

    I'am using Mozilla firefox nightly version in Windows 8.1 .... after starting the Mozilla all toolbar options, minimize, maximum buttons works fine. but as soon as i open a new tabe the (minimize, maximize, close) options do not work with mouse left button clicking. I have to click taskbar "nightly icon" to minimize or close the browser.

    HI Ashraful_007,
    Currently Nightly is not a supported version and is changing each day, however please also to not be discouraged to try to start Firefox in Safe Mode to make sure it is not an add on as well as file a bug in bugzilla.mozilla.org.

  • Working with XML and Button

    Hi,
    How are all of you. Well I am new to Flex. But I have started
    building simple applications. One of the top most problem I am
    facing is working with XML and Button. Can you please assist me in
    this. I am explaining my problem:
    I have an external XML file like this:
    <Menu>
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    <button>
    <idnt>1</idnt>
    <label>Mental Health</label>
    <text>Mental Health pages is currently under
    construction</text>
    </button>
    </Menu>
    Now I want to generate Buttons Dynamically from this XML. And
    the second thing which is the most problematic is that how I code
    it so that when I press the Button labled "General Health", it will
    show the same text as in the XML tag coresponding to tag
    "<label>General Health</label>" ?
    I badly need this. I am realy confused on this. Kindly help
    me.
    Regards
    ..::DeX

    Let's assume that variable "node" contains one element of the
    XML. For example,
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    such that node.label would be "General Health", node.idnt
    would be 0, etc.
    You can build a Button like this:
    var b:Button = new Button();
    b.label = node.label;
    b.data = node; // more on this later
    b.width = 60;
    b.height = 26;
    addChild(b); // critical - adds the button to the display
    list so you can see it
    b.addEventHandler( MouseEvent.CLICK, handleClick );
    You must set the button's width and height unless the button
    will be in a container that will size its own children (like Tile).
    Every Flex component has a data property. You can set it to
    whatever you like. For your needs it makes sense to set each
    Button's data property to the node it relates to.
    Now suppose that code above is in a function, createButton:
    private function createButton( node:XML ) : void {
    // code from above
    Here's how to make all the buttons where "menu" is a variable
    that contains your XML:
    for(var k:int=0; k < menu.button; k++) { // menu.button is
    an XMLList
    createButton( menu.button[k] );
    Now to handle the event:
    private function handleEvent( event:MouseEvent ) : void
    var b:Button = event.currentTarget as Button;
    trace( b.data.text);
    When a button is picked, the description element will print
    in the debug console. Replace the trace with whatever code you
    need.

  • Submit button in inserted HTML is not correctly shows

    Submit button in inserted HTML is not correctly shows.
    <input type="submit" name="submit" value="Submit">
    Button doesn't have a round gradient background like in real HTML.  
    Looks like Muse translated it not correctly. Muse doesn't use inserted code directly to the browser.
    The ??? is how to see a real html appearance?

    Dear All
    I feel adobelance is giving us a pretty good answer.
    I tried code in Dreamweaver and got:
    And in Muse I got:
    I did have to change the border from outset to solid grey (to give it the colour) - the main difference seems to be the font.  It was close enough for me, though.
    I am not a Dreamweaver developer and this is the first code I have run in Dreamweaver (successfully, anyway).
    Muse allows Designers to sketch web sites and as such is good - but it is not Dreamweaver.  I admit I subscribe to Creative Cloud - so I can use Dreamweaver or Muse and am using the latest version but I am a fan of Muse so far. 
    My HTML in Muse is
    <form>
    <form method="post" action="senddata.php">
    <label for="lastname" style="color:black; background:light grey">Last Name:</label>
    <input type="password" id="lastname" name="lastname">
    <input type="submit" value=" Submit Form! " style="border:2px solid grey; color:black; background:light grey">
    </form>
    I do hope this assists you all.
    Kind regards

  • How do I add a submit button to a pdf form?

    hello
    I am trying to add a submit button to a pdf form... is this possible though forms central or Acrobat Pro?

    If it is a PDF you created with FormsCentral, then yes, it should have a Submit button. See this for more info: http://helpx.adobe.com/acrobat-com/formscentral/help/create-fillable-pdf-form.html  and http://helpx.adobe.com/acrobat-com/formscentral/help/create-forms-locally-save-them.html
    If it's a fillable form created with Acrobat Pro, and you want to collect data with FormsCentral, then you import that existing PDF file into FormsCentral and add a Submit button to the form: http://helpx.adobe.com/acrobat-com/formscentral/help/navigate-formscentral.html#import_exi sting_fillable_pdf_forms
    I hope that helps,
    Brian

  • Submit Button in web linked form

    I have created a form with a submit button and have inserted the form as a link on my website, Ithe form upload perfectly but the submit button when pressed creates the error "operation not permitted". I do not need this data to be tracked in a spreadsheet, but I want to make it easy for the person to complete and send back without having to do a save as and attach manually to an email.  When I test the form from my desk top it works perfectly, outlook opens up with the recipients email address and the completed form is attached as a complete PDF, why is it not working when I insert it as a link.  Any help would be much appreciated.  I am using Adobe Acrobat X Pro 10.  Thank you

    Hi Chintan,
    Basically, I have tried to search in the forum within this two days... But I could not find the step by step how to do it. Anyway, I will try to search again. Really appreciate if you don't mind give me the link of it.
    Hi Otto,
    I have created the WD application. Unfortunately, the requirement is online processing form which is attached in the SAP transaction. So, when user open document number of one transaction, the form will be displayed and user can fill the information in this form. Then after that user will click SAVE button to submit data to SAP.
    Any advise?
    Thanks,
    Nonik

  • 2 Submit Buttons --- doesn't process form

    I previously was utilizing one button and the cancelAction command. However, this was causing the form to be submitted when used in the preSubmit event.
    I have recently implemented a 2 submit button solution to a form, which works beautifly for validation. All my edits are executed when they are suppose to be. However, now the form does not submit. When I click the complete button, noting happens.
    I have regular button name Validate, where I do all of my edit checks, and it calls the click event of a submit button, Button1, if all edits pass. I use the command Button1.execEvent("click");
    The click event of Button1 is greyed out, not sure if that is an issue.
    Has anyone ever encountered this before?

    Hi,
    I am guessing that you have used a submit by email button, which automates the submit process. As a result it does not have a click event. I would recommend using a regular button with script in its click event that will do the submit. There are examples of single button submit here, which you should be able to adapt for your hidden submit/regular button: http://assure.ly/eUR4wJ.
    Hope that helps,
    Niall

  • How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central.

    How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.

    This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
    and opening the copy. It is not opened automatically.
    You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
    If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • Submit button in interactive adobe form in abap web dynpro

    Hi can anyone help me out to know hoe to use the submit button in adobe interactive form in abap web dynpro .
    Iam creating a adobe form abap web dynpro . There i need to use the submit button to trigger some action in the adobe interactive form .
    So i need to know how to use the submit button and coding for that in the abap web dynpro .
    Vighnesh

    Hi Michelle,
    Could you tell me how you resolved the problem - as I'm facing exactly the same issue!
    Many Thanks
    Christine

Maybe you are looking for

  • I am having a terrible problem trying to get a player to loop and play all the time.  Please help

    Heres my code. I added a bunch of extras in there in hope that it will work.  It does auto start, however it won't keep looping and restart it.  Whats wrong with it? I have loop = true and i have autorewind = true autoplay=true autostart=true.  I don

  • What is this blackbox warning?

    I have a three year old imac running 10.6.8 (Snow Leopard.)  This mroning I received an error I never saw before.  I was a black box about 5 x 3 inches and it told me I had to power down my maching using the on/off switch and then power back up.  I h

  • Alternate Selection in a JTree

    I am doing a GUI application for a customer who wants support for Windows, Solaris, and Linux. The customer is strongly windows biased and insists on having alternate selection (right click) to them. The application is a 6 panel MDI GUI and they want

  • Iron Man2 Digital Copy doens't work with Itunes

    I just bought the Iron Man 2 DVD with digital copy, and when I read the bonus DVD (which is supposed to contain the Digital Copy), nothing happens in Itunes. The DVD doesn't appear in ITunes as it normally should according to the ITunes instructions.

  • Trying to update a t510

    Hello I've been trying to update my t510 thin all day. I can't find the right image to download either ( the image for the latest OS), so now i'm hoping that someone here has the appropriate image or could tell me what I am doing wrong. thanks. This