Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

So lets say that I have two views, one that is the default and another that can be triggered with a button. Is it possible to switch views, then have the view that you switched to become the default view? So that if the form were opened again it would still be on the view you switched to?

If not, is there a way to have a part of a form read-only to a certain group in SharePoint and editable to another group?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

To change Default view you need to change the form template. This is not possible without publishing new form template to SharePoint.

However you have one simple workaround (lets say you have two views: View1 and View2):

  1. Add new field to your template and name it DefaultView
  2. Set its default value to 1
  3. Add button with rule: Change field A to 2
  4. Add new Form Load rule: If A = 1 switch to View1
  5. Add second rule to Form Load: If A = 2 switch to View2

When form loads it will switch to desired view. You can extend/change this simple example according to your requirements.

For second part of your question you can take a look at my answer provided to this question:

How to constraint InfoPath form page view to certain group of users

share|improve this answer
    
How do you add a form load rule? I am using InfoPath 2007. –  tehman Sep 27 '11 at 19:40
    
    
Could you please share some sample codes? I really appriciate it; –  user14328 Jan 22 '13 at 19:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.