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.

up vote 4 down vote accepted

Wouldn't you just need a workflow that runs on the library when items change, then have it check for a status field on the form to see if it needs to run the submit for approval code ? Set the hidden status field on the InfoPath form with the button.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.