Making a field required based on which view loads up - InfoPath Dev
in

InfoPath Dev

Making a field required based on which view loads up

Last post 10-08-2007 04:59 AM by adamrharding. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-17-2007 06:57 AM

    Making a field required based on which view loads up

    Hello!

     

    now i know in code how to make a field required, what im finding annoying is a way to chack on form load if it is a cirtain view, if it is then i need an event, is there anyway in code on the form load event to check if it is e.g. view 2?

     

    Best regards

     

    Ben

  • 09-18-2007 07:33 AM In reply to

    Re: Making a field required based on which view loads up

    You would have to leverage how you control which view loads or create a field to track the current view.  Then you would have to use rules to make sure the field was validated before submit or when data was entered into it.  Probably both times just to be sure.

  • 10-08-2007 04:59 AM In reply to

    Re: Making a field required based on which view loads up

    Hi

    I would do and do much as Clay suggests and use a field to control what view is shown by setting rules from the 'Tools', 'Form Options', 'Save and Save As' and click 'Rules' to set set field1 to A for first view, B for second view and so on.  This way you use validation linked with your workflow field on the field you want filled in on say view 2.

    So If @Workflow = B and Field 1 is blank the display a dialogue box.

    I hope this helps

    Adam

    Adam Harding
    Wales
    UK
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.