Change submit behavior - InfoPath Dev
in

InfoPath Dev

Change submit behavior

Last post 12-03-2007 02:27 PM by djay. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-26-2007 12:37 PM

    • djay
    • Top 500 Contributor
    • Joined on 06-06-2006
    • Posts 35

    Change submit behavior

    It is possible to set the form to close, or remain open after a submit.

    Is there a way to set this at runtime?  I want to set it up so that if the document is not signed when it is submitted it remains open, but if it is signed it is automaticly closed after submission.  Is this possible?

     Thanks.

  • 11-26-2007 01:08 PM In reply to

    You can specify in Submit options in InfoPath whether the form closes after submit. I do not remember if this is only after a successful submit or not.  I am not sure if you can have a rule on the success of the digital signing or not but certainly in code you could check the condition or errors and close() or not.

  • 12-03-2007 02:27 PM In reply to

    • djay
    • Top 500 Contributor
    • Joined on 06-06-2006
    • Posts 35

    Yep, that did it.  Thanks.

    When setting up the submit, under advanced, you can set it to close after submit is complete.  But it only closes if submit was successful.  So, in the submit event function, set the return value to false and the form stays open; set it to true, and it closes.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.