I'm building a SharePoint app with a form utilizing multiple views for different stages. My form has the three standard views "display", "new" and "edit", which are automatically switched when entering the form by InfoPath (no rules yet).

Now I want to add a rule that switches the form to a different view depending on the value of a field. I know how to add such a rule in the load form rules. I added the condition "If field X is Y switch to view Z". Now whenever I open the form and the field X has a value of Y, the new view Z is shown.

My problem is that this rule triggers when the form is opened for viewing and editing. I want it to only trigger if the form is opened in edit mode. I do not want it to trigger if the form is in read only (display) mode.

So my question is: how to create a rule that will not trigger if the form is opened in read only mode?

  • Have you tried this: In your rule condition, make the first check look at the value that you are using to switch views. Condition: FormStatus is equal to Edit and SomeField is equal to X Action: .... Mar 17, 2017 at 13:12
  • How can I check the FormStatus in a condition? This could solve my problem....
    – avh
    Mar 20, 2017 at 9:25
  • On my forms, I set a text field to my form status when it submits. Text field: default value is New. On my submit, I check the status of the text field, then change it as needed. Something like this: If FormStatus = New, Then set FormStatus = Submitted ... Mar 20, 2017 at 12:45
  • This works to switch between new and edit views. I want to switch between different edit views, but KEEP a single, distinguished display view. Following your suggestion, the rule would trigger in display view as well and switch to the edit view.
    – avh
    Mar 20, 2017 at 12:52
  • I'm not following you on this sentence: "I want to switch between different edit views, but KEEP a single, distinguished display view." You want to switch between different Edit views, but keep another view active? What are you using for a form solution? Mar 20, 2017 at 18:17

1 Answer 1


I would recommend you to add a button on your form to switch to a different view. Once that button is clicked you can switch to the edit view and run your custom rule specific for that view.

  • I am not sure if I understood your idea correctly. Adding a button to change the view might work. But is there such a thing as view-specific load rules? I experienced the load rules are form specific, not view specific. This causes the problem I have: the rules trigger even if the form is opened in the display view.
    – avh
    Mar 20, 2017 at 9:32
  • Load rules are specific to form not view. But you can set few condition on rules such that when form switches to a particular view you can run certain rules at that time. Apr 12, 2017 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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