using OnAfterSubmit element - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

using OnAfterSubmit element

Last post 06-19-2006 01:37 PM by .mond. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-22-2006 08:40 AM

    using OnAfterSubmit element

    I would like to give the user an option of choosing- if they want the form to be "kept open" or "open a new form" after submitting. Can somebody please help me with the code for the OnAfterSubmit- part of this?
    Appreciate any inputs...
  • 02-22-2006 02:43 PM In reply to

    Re: using OnAfterSubmit element

    Using information from this thread:

    http://infopathdev.com/forums/topic.asp?TOPIC_ID=1668

    You can use different responses to perform different actions. You could word your confirmation like this:

    Press Yes to Submit the form and keep it open, press No to submit the form and open a new blank form, or press Cancel to cancel.

    The use the code from that thread with different if statemetns for different responses. To achieve the Open a New Form Functionality, you could just import the template.xml or sampledata.xml back into the form and it should erase all data. Anyway, you just need to clear all data that has been entered into the form so it appears as if a new form has been opened.

    I hope this makes sense!

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 02-23-2006 02:57 PM In reply to

    Re: using OnAfterSubmit element

    Thanks for your response Matt.

    Well my problem is - how i can incorporate "onAfterSubmit" element into my IF statement. Apparently, the below example code from the help document, yeilds an error message. I need help to incorporate this into my js code.
    <xsf:submit
    caption="Su&bmit"
    disableMenuItem="no"
    onAfterSubmit="KeepOpen"
    showStatusDialog="yes">
    </xsf:submit>

    Has anybody used this?
  • 02-23-2006 11:26 PM In reply to

    Re: using OnAfterSubmit element

    Hi NewToInfoPath,
    Your last response includes a snipped of XSF text that is not JS code. It's part of the form template. I'm not sure what you are trying to do. Can you paste in the code for your OnAfterSubmit handler? We'll help you debug the if statement.

    Patrick Halstead [InfoPath MVP]
    InfoPath Dev Seattle
    Patrick Halstead
    Project Manager at Qdabra
  • 06-19-2006 01:37 PM In reply to

    • .mond
    • Not Ranked
    • Joined on 06-06-2006
    • Posts 16

    Re: using OnAfterSubmit element

    Hi,
    to edit the after submit functionality can you use JScript code or do you have to edit the xsf file?
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.