<?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>Counting for a value in and InfoPath Field</title><link>https://www.infopathdev.com:443/forums/thread/97828.aspx</link><pubDate>Fri, 06 Jun 2014 13:02:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97828</guid><dc:creator>exnav29</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97828</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Hi,&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I am creating an
InfoPath form. That will be used to capture information for a list.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I have another list which will use the first
list to determine who the approvers are for a request.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The first list is basically a matrix that
will be populated with various properties which will include the names of the
approvers depending on the scenario.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Now, As far as the
approvers are concerned I don’t want to make those fields required.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;In case the person only has the scenario
information but they do not know who the approvers are they should be able to
still submit the form with the information they have to the first list.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;However, if someone in the second list fills
out a form and selects the scenario that does not have approvers listed I would
like for the second form to notify them that they will not be able to submit
the form for approval due to not having enough approvers assigned for the scenario.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Now my issue is I am trying figure out how best to implement
this.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;My thoughts were to set up a field
on the first form which will see if the approver fields are completed and it
they were to have a field which will count the number of approvers that have
been populated and save this number.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For
example&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Approver One: Yes there is a person assigned (+1)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;
&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Approver Two: No there is no signature (0)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Approver Three: Yes there is a person assigned (+1)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Approver Four: Yes there is a person assigned (+1)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;For a total of 3 which would populate a hidden field with
the value.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The second list would then be
able to look at the field with the number and if the field is less than 2 (for
this we only require at least two people be assigned in order to have the
approval process to begin) then the Submit for Approval button is disabled with
a tooltip explaining that there are not enough assigned approvers for the
scenario.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 8pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Is there any way to achieve this without using code?&amp;nbsp; Any assistance would be greatly appreciated.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;Johnathan&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>