Attention All Infopath Geniuses !!!

D

Durbs

Infopath 2007 functionality:
If you have a form that has a few views and the default view has two buttons
that go to two different views that each submit a different form. when you go
to those two published forms (In Sharepoint) how would you get the forms to
open as opposed to opening the default page with the two buttons on.

and also if you have multiple views for two different forms, how can users
submit the form in one view if there are mandatory fields in another view not
selected (cause of course you cannot see them to fill in) is there a way of
making the views isolated. Or am I doing it all wrong and should not have
more than one form in one template, but if I do that, how can I have a button
that opens a form.

Help me OB1 you;re my only hope
 
G

Greg Collins

First thing: You only have 1 form. Views do not equal forms. One form can
have multiple views. You might write some code to submit the form to a
different library based on the view... but its still just one form.

To get the form to open in a specific view, you need some criteria. The best
place for that is in your document fields. When you switch views (from the
one with two buttons) set a field with the view name to open into next time.
Then write an Open Rule or OnLoad logic to switch to the view listed in that
field.

Mandatory fields are just that: Mandatory. If you have fields that appear in
one view but not others, then you need to make them not mandatory in your
schema and use Custom Data Validation to make the field required only when
the specific view is active.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top