<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33418.aspx</link><pubDate>Thu, 23 Oct 2008 14:32:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33418</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33418</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;As per my knowledge on Infopath if the &amp;quot;Cannot be blank&amp;quot; check box is checked for a field in&amp;nbsp;data source, it is not possible to make the field mandatary in one view and not mandatory in different view. So if a field set mandatory in datasource it is globally set in all the views.&lt;/p&gt;</description></item><item><title>Re: mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33415.aspx</link><pubDate>Thu, 23 Oct 2008 13:43:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33415</guid><dc:creator>Bhavesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33415</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;what i understood is that you have a field in the data source and you are creating multiple instance of that field on different views. When u create instance of same field on different view, the field validation will be applied globally that is what ever field validation you had kept on the field in the data source will be applicable to all it&amp;#39;s instace on diferent view.&lt;/p&gt;
&lt;p&gt;hope this will help you&lt;/p&gt;
&lt;p&gt;Bhavesh&lt;/p&gt;</description></item><item><title>Re: mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33413.aspx</link><pubDate>Thu, 23 Oct 2008 13:17:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33413</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33413</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t believe what you describe exists.&amp;nbsp; Fields are specified as &amp;quot;cannot be blank&amp;quot; within the data source, not within the individual views.&lt;/p&gt;
&lt;p&gt;However, there are things you can do to enforce that fields are filled in for certain views of the form.&amp;nbsp; If you leave &amp;quot;Cannot be blank&amp;quot; unset for field1 in your example, you can use conditional formatting to hide certain other controls (buttons, etc.)&amp;nbsp;in the&amp;nbsp;view whenever field1 is blank so that users have to fill in the field in order to finish using the form for whatever its purpose is.&amp;nbsp; Alternatively if the view has a submit button or something like it, you can add rules so that the button shows an error message when field1 is blank, and does not proceed with submitting the form.&lt;/p&gt;</description></item><item><title>Re: mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33412.aspx</link><pubDate>Thu, 23 Oct 2008 11:09:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33412</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33412</wfw:commentRss><description>&lt;p&gt;thanks that is something that I might be able to do in the future.&lt;/p&gt;
&lt;p&gt;but at the moment i need to have my previous settings back as I only want to set mandatory fileds for my default view.&lt;/p&gt;</description></item><item><title>Re: mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33410.aspx</link><pubDate>Thu, 23 Oct 2008 11:00:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33410</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33410</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Please follow the steps for implementing your functionality.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpFirst" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri" size="3"&gt;Add a new field (let it be named as currentViewName) into the main schema.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="MARGIN:0in 0in 10pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri" size="3"&gt;Set the present form view name into the &amp;quot;currentViewName&amp;quot; field. This can be done by writing the below code in the &amp;quot;OnSwitchView&amp;quot; event.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt 0.25in;TEXT-INDENT:0.5in;"&gt;&lt;font face="Calibri" size="3"&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;/my: myFields /my:currentViewName&amp;quot;).text = thisXDocument.View.Name;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="MARGIN:0in 0in 10pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span style="FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri" size="3"&gt;Now add a &amp;quot;Data Validation&amp;quot; for the “field1” field. So that if currentViewName is equal to the viewname in which you want to show the “field1” field mandatory ,then set the Screen Tip &amp;quot;Cannot Be Blank&amp;quot;.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt 0.25in;"&gt;&lt;font face="Calibri" size="3"&gt;I hope the above steps will help you.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/33409.aspx</link><pubDate>Thu, 23 Oct 2008 10:22:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33409</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33409.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33409</wfw:commentRss><description>&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hello,&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Something strange has happened to my InfoPath 2007 forms. Previously I used to be able to set the &amp;quot;Cannot Be Blank&amp;quot; option for my controls independently in different views.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;So for example I could set the field in Field1 in View1 as mandatory, but in View2 i could set the same field (Field1)&amp;nbsp;as NOT mandatory. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;However now it seems work globally, so whenever I set a Field1 in View1 as mandatory it seems to apply this for all the Field1&amp;#39;s in all my views.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Is there any way to stop this?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Help would be much appreciated.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Thanks&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>