Disabling Views

M

Manz

I have two views in my Infopath form. Based on a field I want to restrict the
users of the form to a view. How can I achieve this?
 
J

Jerry Thomas [MSFT]

Set Task Pane to the Views view.
Switch to the view you want to hide.
Select View Properties.
In the General tab, unselect "Show on the View menu..."

Next, set up Roles for an Admin (you) and Users
Add a Button to the form and set Conditional Formatting so that if Role not
= Admin, Hide this control
Also add a Rule to the button to switch views to the other view.

Now, if the user is an admin, they will see the button that will allow them
to switch to the other view.

--
Jerry Thomas[MSFT]
<[email protected]>
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
M

Manz

Thanks.

Jerry Thomas said:
Set Task Pane to the Views view.
Switch to the view you want to hide.
Select View Properties.
In the General tab, unselect "Show on the View menu..."

Next, set up Roles for an Admin (you) and Users
Add a Button to the form and set Conditional Formatting so that if Role not
= Admin, Hide this control
Also add a Rule to the button to switch views to the other view.

Now, if the user is an admin, they will see the button that will allow them
to switch to the other view.

--
Jerry Thomas[MSFT]
<[email protected]>
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.


Manz said:
I have two views in my Infopath form. Based on a field I want to restrict the
users of the form to a view. How can I achieve this?
 

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