Required field in a particular view - InfoPath Dev
in

InfoPath Dev

Required field in a particular view

Last post 06-18-2008 10:18 PM by swathip. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-16-2008 12:19 PM

    • ellisc
    • Not Ranked
    • Joined on 10-30-2007
    • Posts 2

    Required field in a particular view

    Is there an easy way to make a field required only in a particular view?  My form has 4 views.  I'm using rules in the Form Open and Save option, so my form opens in a different view based on field values.  I would like to have a field be required if the form opens in a particular view.

    I've look at other posts in this forum regarding this issue, but have not been able to follow along with the recommended solutions. 

  • 05-16-2008 01:56 PM In reply to

    • marcdeb
    • Not Ranked
      Male
    • Joined on 05-16-2008
    • Groningen, the Netherlands
    • Posts 5

    Re: Required field in a particular view

    That would be something I would be interested in too, specifically in combination with choice groups.

  • 06-05-2008 09:12 AM In reply to

    Re: Required field in a particular view

    On my form what i did was (if similiar to yours) I have textboxes and checkboxes and you can have what other controls on there if you have others, where the users will fill out. At the bottom of my view I have a button where I use the rule to "switch view" to the next view but all the textboxes, checkboxes, and etc have to be filled in.The way I did this is, on the button where I used the rule to switch views, I set condition. For example, if you have checkboxes your condition(s) should look like this.

     (the name of the checkbox) is equal to (True) or

     (the name of the checkbox) is equal to (True) or

     (the name of the checkbox) is equal to (True) or and so on. If you have more than 5 checkboxes, you will have to add another action and do it again. Also if you have to do it again you need to check the checkbox at the bottom of the Rule box where you add the conditions that says "stop processing rules when this rule finishes"

     

    If you have a textbox it you add on the button that switches views to the next view,

     

     (the name of the textbox) is not blank (the next dropdown will become blank where you can not select anything),-  then add another action, give it a name, tell it to switch views to the same view that it is on and it should look like this.

     (the name of the textbox) is blank (the next dropdown will become blank where you can not select anything)

     

    if it is a dropdown, do the same as the textbox but give the name of the dropdown field. - I also forgot to mention that you have to give it a name for the condition in your checkbox when you add a action.

    if you need anymore assistant with this issue email me at [email protected], it is connected with my phone. if you ask me a question back on here, I may not see it again but I will post it back on here so others can see it too.

  • 06-18-2008 10:18 PM In reply to

    Re: Required field in a particular view

    Follow the below steps.

    1. Add a new field which stores the current view name.

    2. When you click the button set the rules.

        a. Switch view Value.

       b. Set the same view value to the newly added field(addded in step 1).

    3. Now put the data validation on the field which you want to show as required.

        a. If the  field value is that view name then show the required. 

    I hope this will help you.

    Thanks,

    Swathip. 

     

     

     

    Swathip
    www.ggktech.com
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.