<?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: how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70725.aspx</link><pubDate>Thu, 29 Sep 2011 15:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70725</guid><dc:creator>jcmoon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70725</wfw:commentRss><description>NO those weren&amp;#39;t the conditions, I used. 

If in drop down 1, affected_stream is set to: Corporate US (PRC)

and

Drop down 2, request_type is set to: New CC

Conditionally formatting only puts the Section Corporate_US_PRC_New_CC_Section in view, which contains a repeating table called Corporate_US_PRC_New_Table, containing several required fields.

On one required field:

/my:Multiple_Cost_Centers/my:Corporate_US_PRC_New_CC_Section/my:Corporate_US_PRC_New_CC_Group/my:Corporate_US_PRC_New_CC_Table/my:Corporate_US_PRC_New_CC_Valid_From

I added a validation rule 1:

affected_stream = &amp;quot;Corporate US (PRC)&amp;quot;

and validation rule 2:

request_type = &amp;quot;New CC&amp;quot;

Obviously this is wrong, but i don&amp;#39;t quite understand yours... Rule 1 would be that the field is blank? Why? It&amp;#39;s required!


THANKS!</description></item><item><title>Re: how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70723.aspx</link><pubDate>Thu, 29 Sep 2011 15:30:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70723</guid><dc:creator>jcmoon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70723</wfw:commentRss><description>The form is too big to attach, even when zipped up!! Can you send your email to moonjames@gmail.com, and I&amp;#39;ll send it to you via email??</description></item><item><title>Re: how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70721.aspx</link><pubDate>Thu, 29 Sep 2011 15:14:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70721</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70721</wfw:commentRss><description>&lt;p&gt;Hi - I see you replied to the email sent by the forum account alerting you to the response - in the future, you&amp;#39;ll want to post replies in the thread.&lt;/p&gt;
&lt;p&gt;You said in email:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I tried adding a validation rule, which applied only when the drop down boxes put the required fields in view. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So, the validation rule for each field would have two conditions - one being that the field is blank, the other being that the field bound to the dropdown control was a certain value. Were those the conditions you used? If you like, you can attach your form to a reply forum post (under the Options tab) and let me know what field you have your validation rule on, I can double check it for you.&lt;/p&gt;</description></item><item><title>Re: how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70720.aspx</link><pubDate>Thu, 29 Sep 2011 15:12:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70720</guid><dc:creator>jcmoon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70720</wfw:commentRss><description>I tried adding a validation rule, which applied only when the drop down boxes put the required fields in view. What custom validation should I do instead? THANKS!</description></item><item><title>Re: how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70717.aspx</link><pubDate>Thu, 29 Sep 2011 14:50:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70717</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70717.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70717</wfw:commentRss><description>&lt;p&gt;You will have to use custom validation for this, so your general instinct here was correct. Make sure you no longer have &amp;quot;Cannot be blank&amp;quot; selected for these fields. It doesn&amp;#39;t matter if fields are in the view or not - if they are not in a valid state, the form won&amp;#39;t submit. What are the validation rules you are trying that don&amp;#39;t work? And how are they not working (that is - what is the behavior you are seeing)?&lt;/p&gt;</description></item><item><title>how to enable xml field validation based on dropdown boxes?</title><link>https://www.infopathdev.com:443/forums/thread/70707.aspx</link><pubDate>Thu, 29 Sep 2011 12:31:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70707</guid><dc:creator>jcmoon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70707</wfw:commentRss><description>Hi!

I&amp;#39;ve got a massive form with 32 different sections that it drops down to as a result of two dropdown boxes. There are fourteen different combinations of schemas within these 32 sections. I have set the required field to &amp;#39;Cannot Be Blank&amp;quot; to prevent the user from leaving them blank on submit. However, even when the other required fields are not in view when I submit, an error box pops up saying they should not be empty. How do I work around this problem? I have tried adding a rule to each required field, making them valid only for when the dropdowns correspond to those fields, but it doesn&amp;#39;t work!

Any help here would be greatly appreciated!!!

thanks,

james</description></item></channel></rss>