<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: If/Then in submit to SP library</title><link>https://www.infopathdev.com:443/forums/thread/91731.aspx</link><pubDate>Mon, 29 Jul 2013 14:21:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91731</guid><dc:creator>joe_detroit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91731</wfw:commentRss><description>&lt;p&gt;Ok...&amp;nbsp; haven&amp;#39;t tried anything with xPaths so I&amp;#39;ll have to read up on them.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;</description></item><item><title>Re: If/Then in submit to SP library</title><link>https://www.infopathdev.com:443/forums/thread/91676.aspx</link><pubDate>Sun, 28 Jul 2013 04:24:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91676</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91676</wfw:commentRss><description>&lt;p&gt;Hi Joe_Detroit,&lt;/p&gt;
&lt;p&gt;The submit data connection doesn&amp;#39;t support rules, but you can add an xpath with conditionality. Here&amp;#39;s the trick:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;concat(substring(&amp;quot;UNAPPROVED&amp;quot;, 1, 10 * (Field = &amp;#39;NO&amp;#39;)),&amp;#39; &amp;#39;, Field2)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;In other words, if Field is your dropdown and it is &amp;#39;NO&amp;#39;, then Field2 (your form name) will be prefixed with &amp;quot;UNAPPROVED &amp;quot;.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;P&lt;/p&gt;</description></item><item><title>Re: If/Then in submit to SP library</title><link>https://www.infopathdev.com:443/forums/thread/91652.aspx</link><pubDate>Fri, 26 Jul 2013 10:39:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91652</guid><dc:creator>joe_detroit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91652</wfw:commentRss><description>&lt;p&gt;Hi Jo-Anne--&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks, I&amp;#39;ll give that a shot.&amp;nbsp; I tried rules attached to the dropdown, but didn&amp;#39;t think about the submit button.&lt;/p&gt;</description></item><item><title>Re: If/Then in submit to SP library</title><link>https://www.infopathdev.com:443/forums/thread/91647.aspx</link><pubDate>Fri, 26 Jul 2013 04:40:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91647</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91647</wfw:commentRss><description>&lt;p&gt;Hi Joe,&lt;/p&gt;&lt;p&gt;You can try adding a field in your data source called &amp;quot;FormName&amp;quot; and add a rule in your submit button that sets its value. So, for example, add a rule with condition if dropdown is = NO, set value of FormName = concat(&amp;quot;SomeFormTitle - &amp;quot;, &amp;quot;UNAPPROVED). Then, add another rule with condition if dropdown = X, set the value to of FormName to Y.&lt;/p&gt;&lt;p&gt;Hope that helps,&lt;/p&gt;</description></item><item><title>If/Then in submit to SP library</title><link>https://www.infopathdev.com:443/forums/thread/91635.aspx</link><pubDate>Thu, 25 Jul 2013 17:46:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91635</guid><dc:creator>joe_detroit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91635.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91635</wfw:commentRss><description>&lt;p&gt;Hi All...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to do if/then logic in a submit to library connection?&amp;nbsp; I want the word &amp;quot;UNAPPROVED&amp;quot; to be added to the filename if the restult of a dropdown is &amp;#39;NO&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried using some rules attached to the dropdown that would populate a hidden textbox, but the submit function used the formula in the textbox as the filename.&amp;nbsp; I didn&amp;#39;t think that would work, but I figure it was worth a shot...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;joe&lt;/p&gt;</description></item></channel></rss>