<?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>Search results matching tags 'rules' and 'infoPath2010'</title><link>https://www.infopathdev.com:443/search/SearchResults.aspx?o=DateDescending&amp;tag=rules,infoPath2010&amp;orTags=0</link><description>Search results matching tags 'rules' and 'infoPath2010'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Custom Pattern Validation Rule - Unable to use Apostrophes?</title><link>https://www.infopathdev.com:443/forums/p/40073/123723.aspx#123723</link><pubDate>Thu, 10 Dec 2020 11:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:123723</guid><dc:creator>Nerge</dc:creator><description>Hi Everyone,

I&amp;#39;m having a problem with a validation rule that we&amp;#39;re using on text fields that we&amp;#39;re using for email entry on some forms.

We&amp;#39;re using the following custom pattern to try and ensure people are entering emails in a standard format, if they don&amp;#39;t they get the usual red outline/advisory text on the field:
[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4}

The issue we have is this rule can&amp;#39;t handle form users who have an apostrophe in their name, they&amp;#39;ll get the invalid email text etc.

I have tried to add an apostrophe in here but it always shows as an &amp;#39;Invalid pattern&amp;#39; on the &amp;#39;Data Entry Pattern&amp;#39; window; there&amp;#39;s also no option for apostrophes in the &amp;#39;Insert a special character&amp;#39; drop-down on the same window. I assume this is because an apostrophe may be some sort of reserved character in InfoPath, is there any way around this without resorting to code etc?

Thank you. </description></item><item><title>Re: Rule for calculated field</title><link>https://www.infopathdev.com:443/forums/p/39143/119534.aspx#119534</link><pubDate>Fri, 27 Jul 2018 15:49:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119534</guid><dc:creator>jd422</dc:creator><description>&lt;p&gt;&amp;nbsp;LOL.&amp;nbsp; It is working now.&amp;nbsp; I must have had some very minor typo or something.&amp;nbsp; After looking at the XSL file associated with the manifest file, I suspected that it should work.&lt;/p&gt;&lt;p&gt;The data field is in the HistoryItems node (the repeating node/section) in the XDocument.DOM.&amp;nbsp; The rule&amp;#39;s context is the repeating node and therefore it works as I wanted it.&amp;nbsp; I might say that a person could edit the rule and reference any of the sibling nodes and do something a lot more sophisticated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for the reply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;P.S. My apologies for the following rather verbose commentary:&lt;/p&gt;&lt;p&gt;I am&amp;nbsp;especially enjoying working with&amp;nbsp;my InfoPath form.&amp;nbsp; I am using&amp;nbsp;more than 1500 lines of&amp;nbsp;vbScript to manipulate&amp;nbsp;the data and behavior of the work flow.&lt;/p&gt;&lt;p&gt;My form is a request&amp;nbsp;for a new item in our content management system with a&amp;nbsp;workflow that goes from the requestor to Admin and two more levels&amp;nbsp;of approval.&amp;nbsp; It can&amp;nbsp;be rejected at any point in the workflow and go back to the requestor to be restarted.&lt;/p&gt;&lt;p&gt;I use&amp;nbsp;a couple of SharePoint lists for setting some&amp;nbsp;form behavioral parameters and names of approvers and also for some dropdown lists.&lt;/p&gt;&lt;p&gt;By way of the&amp;nbsp;underlying vbScript, the form can be moved/republished at either of two SharePoint libraries (development or production) and the form will automatically know which site it comes from and perform the&amp;nbsp;Save, Email and other such&amp;nbsp;tasks&amp;nbsp;in different ways.&lt;/p&gt;&lt;p&gt;I can open it from the development site or from locally saved exported files (manifest.xsf, template.xml, vbscript.vbs, etc.)&amp;nbsp;for testing and then republish it to the production site when&amp;nbsp;development is complete.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you, again.&lt;/p&gt;&lt;p&gt;Regards, Jim&lt;/p&gt;</description></item><item><title>IP Form, Repeating Table populated with External Data - Trying to add sort /filter capabilities</title><link>https://www.infopathdev.com:443/forums/p/28012/96811.aspx#96811</link><pubDate>Tue, 01 Apr 2014 14:43:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96811</guid><dc:creator>csigler</dc:creator><description>Hi.  I have created an InfoPath form that has a repeating table inside of a section.  The data is pulled from an ETC. I inserted the form into a page and linked the page to an option in my left navigation.  I added a button control to the rows of the repeating table so if a user wants to request a change to that record, they click the edit button, I grab the current() info and display on another form view which has matching SharePoint list fields where they can select what the External fields should be changed to.  This launches workflow, emails folks, yadda yadda yadda......


Now this list is large but via a web service I have data returned in about 1 second.  Not too shabby.  My problem is that I have users at different locations that would only want to see the data pertaining to their specific location.  I dont want to have to edit the web service and create a filter, then data connection for each location.  

I have tried to limit the results of the repeating table by adding a dropdown List to the form where a location can be selected.  I added a Query rule to the field on change.  Then I added a formatting rule to the repeating table so that if my location not = &amp;quot;00&amp;quot;, hide the control.  Works great....  but I have 12 locations. 

I then tried to change the formatting rule on the repeating table so that if my dropdown = &amp;quot;00&amp;quot; and by repeating data table not = &amp;quot;00&amp;quot; to hide the control.  (I would need this for all 12 locations).  As you can see, my rules will step all over each other.  

Sooooo  originally I just wanted to add a button to several of the column headers that would re-sort the list on click but after much searching wasn&amp;#39;t able to find anything. 

I feel like I am over thinking this. Any suggestions?

Corrie</description></item><item><title>Rules, several values​​, section</title><link>https://www.infopathdev.com:443/forums/p/27074/93973.aspx#93973</link><pubDate>Wed, 30 Oct 2013 09:25:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93973</guid><dc:creator>Simon Völkert</dc:creator><description>&lt;p&gt;&lt;span class="hps"&gt;Good morning,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="hps"&gt;since a few days&lt;/span&gt;&lt;span&gt;, I sit&lt;/span&gt; &lt;span class="hps"&gt;in front of a&lt;/span&gt; &lt;span class="hps"&gt;problem&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;and although I&lt;/span&gt; &lt;span class="hps"&gt;want to&lt;/span&gt; &lt;span class="hps"&gt;read&lt;/span&gt; &lt;span class="hps"&gt;from a SharePoint&lt;/span&gt; &lt;span class="hps"&gt;table&lt;/span&gt; &lt;span class="hps"&gt;a column&lt;/span&gt; &lt;span class="hps"&gt;where&lt;/span&gt; &lt;span class="hps"&gt;multiple values&lt;/span&gt; &lt;span class="hps"&gt;​​are&lt;/span&gt; &lt;span class="hps"&gt;stored&lt;/span&gt; &lt;span class="hps"&gt;that are associated&lt;/span&gt; &lt;span class="hps"&gt;to a specific project&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class="hps"&gt;I&lt;/span&gt;&lt;span&gt;&amp;#39;ve&lt;/span&gt; &lt;span class="hps"&gt;managed&lt;/span&gt; &lt;span class="hps"&gt;with&lt;/span&gt; &lt;span class="hps"&gt;a list box&lt;/span&gt;&lt;span&gt;, but now&lt;/span&gt; &lt;span class="hps"&gt;want&lt;/span&gt; &lt;span class="hps"&gt;to&lt;/span&gt; &lt;span class="hps"&gt;appear&lt;/span&gt; &lt;span class="hps"&gt;sections&lt;/span&gt; &lt;span class="hps"&gt;that are&lt;/span&gt; &lt;span class="hps"&gt;displayed when the&lt;/span&gt; &lt;span class="hps"&gt;name of the&lt;/span&gt; &lt;span class="hps"&gt;sections&lt;/span&gt; &lt;span class="hps"&gt;appear&lt;/span&gt; &lt;span class="hps"&gt;in the list box&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;without which I&lt;/span&gt; &lt;span class="hps"&gt;should&lt;/span&gt; &lt;span class="hps"&gt;still&lt;/span&gt; &lt;span class="hps"&gt;be&lt;/span&gt; &lt;span class="hps"&gt;assisst&lt;/span&gt; &lt;span class="hps"&gt;the list box&lt;/span&gt; &lt;span class="hps"&gt;also&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="hps"&gt;Is there a way&lt;/span&gt; &lt;span class="hps"&gt;that I&lt;/span&gt; &lt;span class="hps"&gt;choice&lt;/span&gt; &lt;span class="hps"&gt;the values&lt;/span&gt; &lt;span class="hps"&gt;​​in a rule&lt;/span&gt; &lt;span class="hps"&gt;for each section&lt;/span&gt;&lt;span&gt;, as well as&lt;/span&gt; &lt;span class="hps"&gt;project&lt;/span&gt;&lt;span&gt;-based,&lt;/span&gt; &lt;span class="hps"&gt;and&lt;/span&gt; &lt;span class="hps"&gt;then&lt;/span&gt; &lt;span class="hps"&gt;accordingly&lt;/span&gt; &lt;span class="hps"&gt;the portions where&lt;/span&gt; &lt;span class="hps"&gt;the&lt;/span&gt; &lt;span class="hps"&gt;present&lt;/span&gt; &lt;span class="hps"&gt;value&lt;/span&gt; &lt;span class="hps"&gt;for the project&lt;/span&gt; &lt;span class="hps"&gt;is displayed&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="hps"&gt;Ask for quick&lt;/span&gt; &lt;span class="hps"&gt;response.&lt;/span&gt; &lt;span class="hps"&gt;Thank you&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>multiple selected list box</title><link>https://www.infopathdev.com:443/forums/p/25790/89541.aspx#89541</link><pubDate>Tue, 07 May 2013 10:09:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89541</guid><dc:creator>Diwash</dc:creator><description>how to write a code to deal with multiple selected listbox and update multiple data in database at once?
OR,
how to make functionality in infopath so that it can send a form multiple times through one submit button and update database?
for example: if user checked on 3 checkbox of multiple selection list box then when user click submit then it can submit the form 3 times with 3 different values of checkbox (or, add 3 records in database with every times with 3 different values).</description></item><item><title>Switching Views without Code</title><link>https://www.infopathdev.com:443/forums/p/23182/80256.aspx#80256</link><pubDate>Thu, 05 Jul 2012 21:21:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80256</guid><dc:creator>aberya</dc:creator><description>&lt;p&gt;Hi there&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just wondering if anyone knows if it is possible to write an expression or formula to detect the current view of an InfoPath form, without running code behind?&lt;/p&gt;&lt;p&gt;I have built an infopath form that has three views, Writable, Read Only and Print Views.&amp;nbsp; In the form is a Read Only flag in the schema and we use this control if the form is Read Only or Writeable.&amp;nbsp; We have added a Rule when the form is opened to switch the view to the ReadOnly view when ever the Read Only flag is set.&amp;nbsp; However this has the side effect that when the Print Preview button is clicked in Form Services the Form Load rules execute and if the Read Only flag is set it displays the Read Only view, not the Print View.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The form load rule is basically &amp;quot;If ReadOnly = 1 then Switch View to ReadOnly&amp;quot; so I think I need to get rid of that rule or be able to detect that the form is trying to print.&lt;/p&gt;&lt;p&gt;Does anyone have any suggestions on how to resolve this issue?&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Alan&lt;/p&gt;</description></item><item><title>Possible to Conditionally Disable Checkbox Based on Current View - without Custom Code?</title><link>https://www.infopathdev.com:443/forums/p/21947/75825.aspx#75825</link><pubDate>Wed, 29 Feb 2012 01:11:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75825</guid><dc:creator>nkstrou</dc:creator><description>&lt;p&gt;Hi InfoPathers:&lt;/p&gt;
&lt;p&gt;I have 2 views in my InfoPath 2010 filler form, one called Configuration and one called Test Plan.&amp;nbsp; The idea is that a developer fills in the configuration information for a team setup, that causes certain tests to appear on the test plan page, and a tester goes off and runs those tests.&lt;/p&gt;
&lt;p&gt;In order to keep the tester from having to flip back and forth between the two views, I&amp;#39;ve put some repeating tables on the Test Plan view that are bound to the controls entered by the developer on the Configuration view, usually in a repeating table.&amp;nbsp; The idea here is&amp;nbsp;to give the&amp;nbsp;tester&amp;nbsp;the ability to&amp;nbsp;view the configuration information, but&amp;nbsp;not make changes to it.&lt;/p&gt;
&lt;p&gt;The vast majority of the controls on the Configuration view are comboboxes, and when I create the corresponding controls on the Test Plan page, I make those textboxes, which I can then set to read-only.&amp;nbsp; However, I have one set of three checkboxes I need to bring over from the Configuration view, and I&amp;#39;m struggling with how to make these read-only.&amp;nbsp; I can set up a formatting rule that evaluates to true every time and then disable the checkbox, but then the checkbox is also disabled on the Configuration view.&amp;nbsp; Not good!&lt;/p&gt;
&lt;p&gt;Does anyone&amp;nbsp;know is there&amp;#39;s a&amp;nbsp;way I can get the name of the current view without having to resort to custom coding?&amp;nbsp; I do see there are some custom coding options using the CurrentView property, I&amp;#39;d just prefer not to have to deal with custom code if at all possible.&amp;nbsp; Alternately, what about an option that would let me use a different control that I can set to read-only? I did come up with an option that let me use textboxes in lieu of option buttons in&amp;nbsp;a different section of the Test Plan view, and that let me use the read-only property of the textbox.&amp;nbsp; Because I need the possibility of multiple selections, checkboxes or a multi-select list box seem like the best options, but I don&amp;#39;t see a way to make either of those read-only aside from using the current view.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help greatly appreciated!&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item><item><title>Newbie help needed with INFOPATH RULES 2010</title><link>https://www.infopathdev.com:443/forums/p/19848/68824.aspx#68824</link><pubDate>Thu, 28 Jul 2011 20:44:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68824</guid><dc:creator>rmathaudhu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;i have 2 infopath forms(Content Type) published to a forms library in Sharepoint 2007.&lt;/p&gt;&lt;p&gt;I want to have it when I check a checkbox on one form that it will take that form and another form that has the same form number as the first and move it into a different &amp;quot;Archive&amp;quot; view.&lt;/p&gt;&lt;p&gt;Right now when I check the box manually on both forms it works.&amp;nbsp; But is there a way for me to configure a rule on the form when I check the box on one it will also do it to the other related form.&amp;nbsp; i tried to set some rules with no success.&lt;/p&gt;&lt;p&gt;if im missing any information please let me know what you need.&amp;nbsp; &lt;/p&gt;&lt;p&gt;thanks again Ravi&lt;/p&gt;</description></item></channel></rss>