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

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
1  
0% Accept rate? –  Steve B Jul 26 '12 at 14:13
add comment

1 Answer 1

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
add comment

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.