Distinguishing between save and submit - InfoPath Dev
in

InfoPath Dev

Distinguishing between save and submit

Last post 03-03-2011 08:53 AM by Shefali. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-03-2011 08:07 AM

    Distinguishing between save and submit

    Hi everyone,

     I would be glad if someone can help me with this. We have really hit a road block with this one in the middle of implementation and my thoughts are getting dry now.

    The requirement is to implement an Infopath 2007 browser-enabled form without any custom code. This form is published as template to a sharepoint forms library and the forms themselves are stored in a document library. When the user has submitted the form to the document library, we change a few status values on a sharepoint list and kick-off some emails that need to be sent to specific users letting them know that the form is submitted. We also need to change certain users' permissions from read-write to ready only on this form. You can see that a lot of background processing is done as soon as the form is submitted. However, we do need to provide the users an option to "save" this form as well (which is possible by the standard top toolbar). My question is that how do I check whether the user has just saved the form or actually submitted it.

    The option that I tried was to create a hidden boolean field which is by default, false but is set to true on clicking the submit (custom) button and added another action on this button to submit the form to sharepoint library via data connection. This flag can then be pushed onto the sharepoint library to check whether the user clicked on submit or not. However, the problem is that if there are any validation errors on the form, the submit action would not complete but the flag would have been set by then.  Is there any way to check this validation apart from data connections submit option?

    I would appreciate if anyone has any other way of tackling this issue.

    Please reply as soon as possible as my deadlines are real close. 

    Thanks in advance for all the help.

    Cheers

    Shef

  • 03-03-2011 08:48 AM In reply to

    Re: Distinguishing between save and submit

    Hi Shef,

    Your technique is correct. You can add another rule after the one you have that only executes if the one above fails (when submit fails) that sets the flag back. Let me know if this doesn't make sense.

     

    Patrick Halstead
    Project Manager at Qdabra
  • 03-03-2011 08:53 AM In reply to

    Re: Distinguishing between save and submit

    Thanks for getting back so quicky Patrick.

     Could you elaborate a bit further in terms of how can I check if the previous rule failed or not?

     

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