<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Form button to start a workflow.</title><link>https://www.infopathdev.com:443/forums/thread/90581.aspx</link><pubDate>Tue, 11 Jun 2013 12:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90581</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90581.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90581</wfw:commentRss><description>&lt;p&gt;I think the problem is simpler and no code is needed.&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;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&amp;#39;t start the workflow.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Form button to start a workflow.</title><link>https://www.infopathdev.com:443/forums/thread/90575.aspx</link><pubDate>Tue, 11 Jun 2013 09:39:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90575</guid><dc:creator>ching</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90575</wfw:commentRss><description>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.</description></item></channel></rss>