<?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: Help with Preventing duplicate entries on field before form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/96690.aspx</link><pubDate>Wed, 26 Mar 2014 21:24:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96690</guid><dc:creator>Andrew LaForge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=96690</wfw:commentRss><description>thanks a lot for the suggestion, I&amp;#39;m going to try that..

I have it setup on another form to basically just include a link which pulls up the column from the SP list and allows the user themselves to check for a duplicate (not really how I wanted it setup, but all I thought of as a workaround)

I&amp;#39;ll let you know how it goes once I have time to create everything.</description></item><item><title>Re: Help with Preventing duplicate entries on field before form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/96656.aspx</link><pubDate>Wed, 26 Mar 2014 09:40:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96656</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=96656</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Maybe I&amp;#39;ve missed the complexity of your account number,&lt;/p&gt;&lt;p&gt;Yet assuming your account number is in a column within your list which you are querying, why not do the following.&lt;/p&gt;&lt;p&gt;On your form you&amp;#39;ll have a field where an account number is input into (in my test it was a simple number). i.e. New Account Number&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You&amp;#39;ll have a section, which has text in it i.e. Account number already exists, please choose another one.(Make if very obvious for your end users).&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Attached to the section above is another field (Existing Account Number), which is not on the form, but used for &amp;quot;math&amp;quot;. default value of 0&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;You could use a button (next to or underneath your New Account Number field) with several rules on it&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; Reset field Existing Account Number to 0&lt;/p&gt;&lt;p&gt;2. Quwery your sp list&lt;/p&gt;&lt;p&gt;3. Condition - New AccountNumber = Account Number&lt;/p&gt;&lt;p&gt;Set Field Value Existing Account Number = 1&lt;/p&gt;&lt;p&gt;Then on your section (Existing Account Number) have a formatting rule to hide the section if Existing Account Number IS NOT EQUAL to 1.&lt;/p&gt;&lt;p&gt;On you button with the rule, make sure that if rule 3 is met, any further rules are not allowed to run.&lt;/p&gt;&lt;p&gt;You could hide a separate submit button until the account number has be checked and verified.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="gmw_"&gt;It doesn&amp;#39;t have to be a section that hides, you could switch to a view to &lt;span class="gm_ gm_f2278119-9f0e-8288-4c56-27922087df11 gm-spell"&gt;make&lt;/span&gt; it very obvious. with a back button (switch view) to the previous view. &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help with Preventing duplicate entries on field before form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/96639.aspx</link><pubDate>Tue, 25 Mar 2014 18:32:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96639</guid><dc:creator>Andrew LaForge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=96639</wfw:commentRss><description>Hey all,

So I&amp;#39;m really struggling on how to properly set this up, and not sure if anyone has a quick way to complete this..I have found several articles on here, but nothing with specifics on how the rules need to be created 


I have a field &amp;#39;Account Number&amp;#39; .. before the form is submitted, I need to query the same SP list and make sure that account number does not already exist.. and if it does, kick an error. 

I already setup to query the data connection but everywhere I research mentions needing to setup an expression .. and I can&amp;#39;t find any specifics on what to use for the actual expression conditions.. 


Any help would be very appreciated!!!

Thanks
-Andrew</description></item></channel></rss>