<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Sending email via code (Newbie)</title><link>https://www.infopathdev.com:443/forums/thread/4245.aspx</link><pubDate>Thu, 15 Mar 2007 16:18:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4245</guid><dc:creator>hers2keep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4245.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4245</wfw:commentRss><description>Ok - I set up some checkboxes in the data source, but didn't place them on the form itself. What I'd like to do is perform some logic like this when the user clicks on the "Send Form" button.&lt;br /&gt;&lt;br /&gt;If concat(eFirstNameImmSup," "eLastNameImmSup) is signed;&lt;br /&gt;Then set ImmSupSigned=True AND email form to HRMgr (set up as a Data Connection);&lt;br /&gt;Else&lt;br /&gt;If HRMgrName is signed;&lt;br /&gt;Then set HRMgrSigned=True AND email form to DeptHead (set up as a Data Connection);&lt;br /&gt;Else &lt;br /&gt;If concat(eFirstNameDeptHd," "eLastNameDeptHd) is signed;&lt;br /&gt;Then set DeptHdSigned=True AND email form to PlantMgr (set up as a Data Connection);&lt;br /&gt;Else&lt;br /&gt;If PlantMgrName is signed;&lt;br /&gt;Then set PlantMgrSigned=True AND email form to ExecMgmt (set up as a Data Connection);&lt;br /&gt;Else&lt;br /&gt;If ExecMgmt is signed;&lt;br /&gt;Then set ExecMgmtSigned=True AND email form to HRMgr (set up as a Data Connection)&lt;br /&gt;End all the Ifs&lt;br /&gt;&lt;br /&gt;That part I think I can muddle through, but what would be the code to actually send the email to the designated user?</description></item><item><title>Re: Sending email via code (Newbie)</title><link>https://www.infopathdev.com:443/forums/thread/4244.aspx</link><pubDate>Wed, 14 Mar 2007 22:29:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4244</guid><dc:creator>hers2keep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4244.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4244</wfw:commentRss><description>I'll try that and see how it works!&lt;br /&gt;Thanks!!&lt;br /&gt;&lt;br /&gt;Carla&lt;br /&gt;InfoPath Fan (albeit a new one!)</description></item><item><title>Re: Sending email via code (Newbie)</title><link>https://www.infopathdev.com:443/forums/thread/4243.aspx</link><pubDate>Wed, 14 Mar 2007 22:12:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4243</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4243.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4243</wfw:commentRss><description>I would use one or more flag fields (A text or number field created for this purpose) to monitor status.  When the form is saved or submitted the flag field increments or changes value. You may want to have one for each signature line and as that person clicks to sign have a rule also mark the flag field.  That way you can put complimentary conditional rules in your form to control what is displayed or to alert if the form is out of order.&lt;br /&gt;</description></item><item><title>Sending email via code (Newbie)</title><link>https://www.infopathdev.com:443/forums/thread/1913.aspx</link><pubDate>Wed, 14 Mar 2007 21:56:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1913</guid><dc:creator>hers2keep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1913.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1913</wfw:commentRss><description>I am finishing up my first form for which I've already gotten help today from this forum. Thanks very much for that!&lt;br /&gt;&lt;br /&gt;My next obstacle is to programmatically send via email with the recipient being based upon the values in checkboxes, as well as compared against the signatures already received. The first signature is signing the form, with each subsequent signature signing the previous signature. So all the signatures are on the entire form. Currently, the data is not submitted to a database, but is just following the form itself.&lt;br /&gt;&lt;br /&gt;I need a way to determine who the next recipient for the form should be (they have to sign in order). So, I thought I could have a button created for each signature and have the buttons appear and disappear based upon the checkboxes which determine who all needs to sign it compared to who has already signed it.&lt;br /&gt;&lt;br /&gt;I.e., Immediate Supervisor generates the form &amp; signs it digitally, which then locks all the controls. When they click on "Send Form" it goes to the next person in the list who in turn signs it digitally (still the whole form) and clicks submit and on down the line. So at the end, the form is signed by anywhere from 2-5 people and the last recipient just keeps the form.&lt;br /&gt;&lt;br /&gt;What is the best way to accomplish this? I tried to make a button disappear if a certain signature existed, but I can't figure out how to determine who has signed the form programmatically. When I look at the options under conditional formatting for the button, I can choose signable sections, but they are signing the whole form - not a specific section.&lt;br /&gt;&lt;br /&gt;What's the best way to accomplish my goal?</description></item></channel></rss>