Required field in the current view - InfoPath Dev
in

InfoPath Dev

Required field in the current view

Last post 01-14-2008 11:34 AM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-14-2008 09:47 AM

    Required field in the current view

    Hello.

    [ InfoPath 2007, Web compatible, No code ]
     

    I have the common problem 'required fields in other views'. I guess most of you know what does this mean. I can't submit my form, because there are some required fields in the other views.

     
    I tried the most obvious solutions - remove the 'required' attribute from the field and try to validate it using rules and etc. This doesn't work for me, because of the simple fact I cannot determine which view is currently loaded. I have read a couple of threads here regarding this matter, and none of them suggests how exactly to determine the currently loaded view. No, I can't use code-behind.

    If only there was a way to determine one of these:

    1. If a particular field is read-only

    2. The name of the current view

    3. If a particular field is visualized in the view

     

    Or if a field could have a different default value, in each view...

     

    Any ideas? I am kind of desperate here... Any suggestions will be highly appreciated.

    Thanks!
     

    Filed under:
  • 01-14-2008 11:34 AM In reply to

    Re: Required field in the current view

    In Designer you should be able to view your data source in the task pane and see which fields are Required.

    Often you either have to set a default so that they will pass validation or you need to do your own validation.  So do not set them as required but check them manually in your form to ensure that the user completes them when necessary via conditional rules.

    Another way to test is to add buttons to navigate all of your views and then browse them to find the field, but that should not be necessary.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.