<?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: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/29249.aspx</link><pubDate>Mon, 09 Jun 2008 17:49:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29249</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29249.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29249</wfw:commentRss><description>&lt;p&gt;You can access submit options from the tools menu. This is what the toolbar button uses.&lt;/p&gt;
&lt;p&gt;Then you can switch to submit using rules. &lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/29240.aspx</link><pubDate>Mon, 09 Jun 2008 11:57:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29240</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29240</wfw:commentRss><description>&lt;p&gt;As I&amp;#39;m having problems with the&amp;nbsp;customised submit buttons I&amp;#39;m not using them in my forms,&amp;nbsp;so is there any other way to check for mandatory fields with the submit button in the toolbar?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27956.aspx</link><pubDate>Tue, 15 Apr 2008 16:19:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27956</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27956</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;No this is all manual.&lt;/p&gt;
&lt;p&gt;Default the field to the name of your current view and then when switching the view with your buttons add another action to update the field with the new view name.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is exactly where I&amp;#39;m stuck &amp;quot;&lt;strong&gt;when switching the view with your buttons add another action to update the field with the new view name&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;I have set the default value of my View field to FormRegistration. How can the View field autmatically be changed to the the name of the current view?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;my submit buttons are not switching views. they are just submitting to sharepoint.&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27947.aspx</link><pubDate>Tue, 15 Apr 2008 15:44:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27947</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27947</wfw:commentRss><description>&lt;p&gt;No this is all manual.&lt;/p&gt;
&lt;p&gt;Default the field to the name of your current view and then when switching the view with your buttons add another action to update the field with the new view name.&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27942.aspx</link><pubDate>Tue, 15 Apr 2008 13:32:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27942</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27942</wfw:commentRss><description>&lt;p&gt;ok..I need to set the Action on my Submit buttons just to Submit as I am submitting to SharePoint so I&amp;#39;m not using the switch view feature.&lt;/p&gt;
&lt;p&gt;how can I set my View field to the name of hte current view? is there a currentview function?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27930.aspx</link><pubDate>Mon, 14 Apr 2008 18:58:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27930</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27930</wfw:commentRss><description>&lt;p&gt;now you create a conditional rule on submit &lt;/p&gt;
&lt;p&gt;if view = &amp;#39;currentviewname&amp;#39; and field is not blank &lt;/p&gt;
&lt;p&gt;add your submit actions.&lt;/p&gt;
&lt;p&gt;You could have a rule which was field blank and use a message to alert the user, etc&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27925.aspx</link><pubDate>Mon, 14 Apr 2008 16:15:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27925</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27925</wfw:commentRss><description>&lt;p&gt;Anyone who can help me with this please? &lt;/p&gt;
&lt;p&gt;I have created a field in my DataSource and called it View and given its default value same as my default view (FormRegistration)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have created a submit button on each View as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;now this is where I get stuck....what happens next? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27884.aspx</link><pubDate>Fri, 11 Apr 2008 16:28:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27884</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27884</wfw:commentRss><description>&lt;strong&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;/strong&gt;&lt;strong&gt;
&lt;p&gt;This needs to be done manually.&lt;/p&gt;
&lt;p&gt;Create a field in your main Dom called View.&lt;/p&gt;
&lt;p&gt;Set its default to the name of your default view.&lt;/p&gt;
&lt;p&gt;Each time you switch a view, add an additional action which&amp;nbsp;update this field to the name of the view you are sending the user to.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Each time you switch a view, add an additional action which&amp;nbsp;update this field to the name of the view you are sending the user to.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;how is this done? I am really confused now.&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27545.aspx</link><pubDate>Fri, 28 Mar 2008 18:41:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27545</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27545</wfw:commentRss><description>&lt;p&gt;Yah you are getting it.&lt;/p&gt;
&lt;p&gt;You would add the View field to your datasource, it would not probably be shown in the view.&lt;/p&gt;
&lt;p&gt;I would put conditional formatting on the submit button with conditions.&lt;/p&gt;
&lt;p&gt;viewfield = view1 and age is&amp;nbsp;blank&amp;nbsp;or&amp;nbsp;viewfield = view1 and &amp;nbsp;salary is&amp;nbsp;blank. Submit is disabled.&lt;/p&gt;
&lt;p&gt;Or you could put it as the first rule and have a warning message pop up or whatever.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27543.aspx</link><pubDate>Fri, 28 Mar 2008 18:13:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27543</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27543</wfw:commentRss><description>&lt;p&gt;hmm...Ok, I&amp;#39;m totally lost now :(&lt;/p&gt;
&lt;p&gt;Lets say I&amp;#39;ve got 2 views:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;View1 &lt;/strong&gt;(default)&amp;nbsp;and &lt;strong&gt;View2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;in both of the views I have the same two fields. &lt;strong&gt;Age&lt;/strong&gt; and &lt;strong&gt;Salary&lt;/strong&gt;. &lt;/p&gt;
&lt;p&gt;so,&amp;nbsp;I add a submit button for each view. &lt;/p&gt;
&lt;p&gt;I add an additional field to View 1 called ViewField to track the views, and set the default value to &amp;quot;View 1&amp;quot; &lt;/p&gt;
&lt;p&gt;I set a valudation rule on the ViewField to check that Age and Salary is NOT BLANK? &lt;/p&gt;
&lt;p&gt;is it right so far?now what do I do next? sorry about all these questions.&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27541.aspx</link><pubDate>Fri, 28 Mar 2008 17:33:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27541</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27541</wfw:commentRss><description>&lt;p&gt;Nope.&lt;/p&gt;
&lt;p&gt;You add the field to the data source.&lt;/p&gt;
&lt;p&gt;You are using buttons with rules and actions to switch views just add another action to set a fields value.&lt;/p&gt;
&lt;p&gt;If using code then again you would set the field value when executing a view switch.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Once this is done then put rules in Open (under tools - Form options) which checks the user and the form state or last view and can open the form where it was last.&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27540.aspx</link><pubDate>Fri, 28 Mar 2008 17:19:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27540</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27540</wfw:commentRss><description>&lt;p&gt;is this with coding?&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27538.aspx</link><pubDate>Fri, 28 Mar 2008 16:09:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27538</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27538</wfw:commentRss><description>&lt;p&gt;This needs to be done manually.&lt;/p&gt;
&lt;p&gt;Create a field in your main Dom called View.&lt;/p&gt;
&lt;p&gt;Set its default to the name of your default view.&lt;/p&gt;
&lt;p&gt;Each time you switch a view, add an additional action which&amp;nbsp;update this field to the name of the view you are sending the user to.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27526.aspx</link><pubDate>Fri, 28 Mar 2008 12:39:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27526</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27526</wfw:commentRss><description>&lt;p&gt;ok so how do you use a field tro track the views. I dont understand exactly what you mean. How do you get the view names?&lt;/p&gt;</description></item><item><title>Re: Setting a field as mandatory for only the current view.</title><link>https://www.infopathdev.com:443/forums/thread/27501.aspx</link><pubDate>Thu, 27 Mar 2008 17:31:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27501</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27501</wfw:commentRss><description>&lt;p&gt;You can submit via rules.&lt;/p&gt;
&lt;p&gt;You can have as many submits as you want.&lt;/p&gt;
&lt;p&gt;Just set submit options to rules and then put conditions as needed and fire the various submits.&lt;/p&gt;
&lt;p&gt;Often you could put conditional formatting on the button and it would be disabled until the validation was right.&lt;/p&gt;</description></item></channel></rss>