We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Upon Submit email different view

Medium Priority
Last Modified: 2013-11-25
I want upon submit an email to be sent to the email address in the email field (easy enough) the problem is I want the email to contain a different view.   I have an input screen that based on selections fills out one of 35 views, I want when the end user hits submit the correct view to be emailed to the client not the information view.  When i place a submit button with a switch view it does not then email the view other then the input screen.
Watch Question

Director of Business Integration
What happens is when the second person opens the form there is no logic but to open to the default view.
Here is the trick.

You need to modify your form so that it opens to the correct view.
Add a field in the form to track the view, currentview.
Add a rule action to the email button which set currentview to the viewname.
Then put an open rule which checks currentview and changes the view on open to the view selected.

This is what you want, the second user opens the form to the view which first user sent them

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Andrew BassProject Manager


Hey Clay, so here is the issue with that.  The secondary view is a non editable print view which i relistically want to have it print as an image file and send to the client, I do not want the client to have a view of infopath at all.  
Clay FoxDirector of Business Integration
Are you using 2007?

Then you can email a view rather than attach the form.

Also a trick is that on the button you can add the actions to switch view, then submit to email, then close the form.  You can then make this transparent to the user.

If you want to print to email or something there are some third party apps or coding could fit this scenario.
Andrew BassProject Manager


The problem is I am making it in 2007 but it has to be compatable with 2003 which makes the biggest issue, I found a line of coding I can use but I need InfoPath SP and InfoPath Toolkit to do it, my worry is this will cause existing forms ive made to be in jeopardy or it will require the end users to have these add ins.
Andrew BassProject Manager


Didnt help but answered the question none the less, thanks Clay
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.