Form button to start a workflow. - InfoPath Dev
in

InfoPath Dev

Form button to start a workflow.

Last post 06-11-2013 05:40 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-11-2013 02:39 AM

    • ching
    • Not Ranked
      Female
    • Joined on 06-04-2013
    • Philippines
    • Posts 3

    Form button to start a workflow.

    I have an infopath form to that has three (3) buttons in it. They are SAVE, SUBMIT FOR APPROVAL and CANCEL. When user presses SAVE it submits the form to the Sharepoint Library, when SUBMIT FOR APPROVAL button is pressed it submits the form to the Library and then starts a workflow that is present in the Library and CANCEL button to close the form without submission. I want to embed a code in the SUBMIT FOR APPROVAL button which when pressed would automatically start the workflow. But I dont know where to start. I am so confused.. Someone help me.
    ---ching---
  • 06-11-2013 05:40 AM In reply to

    Re: Form button to start a workflow.

    I think the problem is simpler and no code is needed.

    Simply add a field to your form called my:Status and set its value (via rules) when the user clicks Save or Submit. Promote this field, i.e. make it a promoted property.

    Then, in the SharePoint form library, you can use the value of Status to determine whether the workflow starts or not. If Status = Submitted, start the workflow. Otherwise, don't start the workflow.

    Hope this helps.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


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