SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have several different views in InfoPath 2010 and would like to apply rules on the "Form Submit" based on what the "Current" form view is. I don't see anything in the "Condition" statement that allows this. Something like: If currentView = AdminView then apply these actions.

Any ideas?

share|improve this question
0% Accept rate? – Steve B Jul 26 '12 at 14:13

Create as many as required submit data connections.

Put one button in each view, and setup it to execute rules instead of submitting the form.

In the rule, add a submit action to the proper data connection.

share|improve this answer
Hmm, That's what I did in IP2007 but in IP2010 I was hoping to use the "Submit" button in the ribbon (it's a Browser based form). From what your saying, I'll have to create buttons on the Form and set the Form Options to NOT display the "Submit" button. Is that correct? – Bismarck Jul 26 '12 at 14:26
Unless I missed something, the only way to interact when the view change is by code. You can maybe inject javascript in the view's xsl file, but I don't know it works and if it's supported. – Steve B Jul 26 '12 at 14:31
well could also create a web service method that adds the xml to a form library and call this method as default submit action. this method coulld then have a parameter in which library to submit - and in your form you could have a field that changes according to the view – int32 Jul 31 '12 at 11:10

Your Answer


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.