New Record button changing view

S

Sean

I have a form with 3 views(1 is a print view) that submits to a db and via
e-mail. On one of the views I have a new record button that should clear the
fields but it switches to another view. There isn't any code behind the
button (It is just the New Record selection from InfoPath).

Any ideas why this may be happening.
 
K

Kalyan Reddy

Hi Sean,

Check in the Button Properties whether there are any “Actions†added like
“Switch views†or “Open a new Form to fill out†added in the “Rules†to the
“New Record Button†.

Hope this Helps you.
 
S

Sean

No. In the properties I selected the "New Record" option. It appears to
switch to the default view each time.
 
S

Sandeep

Hi Sean

I think it will happen when ever create data source from main data connection.

This is the alternative solution

You can create a rule on your button for change view.
Or by code(C#):
thisXDocument.View.SwitchView("yourView");

I hope this will help U
 
Top