<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rule to clear the fields</title><link>https://www.infopathdev.com:443/forums/thread/108576.aspx</link><pubDate>Tue, 15 Nov 2016 15:38:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108576</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108576.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108576</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Any chance I could see a copy of your form so I could take a look at the rules? You can attach a template under the Options tab in a reply. I&amp;#39;m guessing that you need to have custom validation on your second set of radio buttons so that they are only &amp;quot;cannot be blank&amp;quot; if the first set is equal to Yes (0).&lt;/p&gt;</description></item><item><title>Rule to clear the fields</title><link>https://www.infopathdev.com:443/forums/thread/108532.aspx</link><pubDate>Fri, 11 Nov 2016 13:28:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108532</guid><dc:creator>CRogado</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108532</wfw:commentRss><description>I tried this solution: http://www.infopathdev.com/forums/p/26099/90700.aspx but doesn&amp;#39;t work.

I have two radio buttons (Yes (0) and No(1)) and if the client chooses Yes to appear another radio button with 2 choices if the client chooses the first appears a text box to fill. And now the client decide to choose the first option NO... If I try to Save the form I receive an error:

&amp;quot;The form cannot be submitted because it contains validation errors. Errors are marked with either a red asterisk (required fields) or a red, dashed border (invalid values).\n\nField or group: my:externalCompanyName\r\nError: This field is required\r\n&amp;quot;&amp;quot;

I thought when I choose No after choosing Yes the fields were clean.

Please see the image with the example.</description></item></channel></rss>