<?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: required field validation before submit</title><link>https://www.infopathdev.com:443/forums/thread/104895.aspx</link><pubDate>Fri, 11 Dec 2015 04:53:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104895</guid><dc:creator>Majik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104895</wfw:commentRss><description>Have you tried simply checking the Cannot be Blank option for the field or using a Validation rule that requires the field contain information?&lt;p&gt;

Using a validation rule is helpful when the field doesn&amp;#39;t always require information, e.g. if that part of the form isn&amp;#39;t displayed because check box X wasn&amp;#39;t checked.  If you are not validating based on a checkbox, etc and you just want that field to have content, just try the Cannnot be Blank option in the field properties.&lt;p&gt;

For the rule, add a new Validation Rule to the RequiredField&lt;p&gt;

Condition is:&lt;br /&gt;
CheckBoxX = TRUE  and&lt;br /&gt;
RequiredField is blank&lt;p&gt;

You can add a screen tip and a dialog box to the rule too.&lt;p&gt;

I haven&amp;#39;t needed to do any view switching, but I assume everything would work the same.  Good Luck.</description></item><item><title>required field validation before submit</title><link>https://www.infopathdev.com:443/forums/thread/104823.aspx</link><pubDate>Wed, 02 Dec 2015 22:11:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104823</guid><dc:creator>lhynlen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104823</wfw:commentRss><description>How can i have a validation for required field before submitting and switching view in a submit button? Is there a simple way to do this without code?</description></item></channel></rss>