locked
Control InfoPath Views from a hyperlink RRS feed

  • Question

  • Is it possible to open specific InfoPath 2010 browser form view from a hyperlink? - i.e. - 1st link opens View A, 2nd link that will open View B.
    Thursday, December 20, 2012 4:18 PM

Answers

  • David, simple answer is nope.  Sorry, you can open the form using an XML string:

    http://<servername>/_layouts/FormServer.aspx?XmlLocation={@FileRef}&Source=http://<servername>{@Title}&DefaultItemOpen=1

    However calling out a view is not supported that way.....Here is another option.

    Have a landing View in the form with different buttons, each button allows the person to flip to a view.  Here is a great post on the idea of a rule based view change also: http://www.formotus.com/15201/blog-infopath/switch-infopath-views-on-form-open-for-a-better-user-experience


    Keep Moving Forward, Scott Ellis CFP,MCP,MCTS,L.L.M. Solutions Architect

    Thursday, December 20, 2012 10:44 PM

All replies

  • David, simple answer is nope.  Sorry, you can open the form using an XML string:

    http://<servername>/_layouts/FormServer.aspx?XmlLocation={@FileRef}&Source=http://<servername>{@Title}&DefaultItemOpen=1

    However calling out a view is not supported that way.....Here is another option.

    Have a landing View in the form with different buttons, each button allows the person to flip to a view.  Here is a great post on the idea of a rule based view change also: http://www.formotus.com/15201/blog-infopath/switch-infopath-views-on-form-open-for-a-better-user-experience


    Keep Moving Forward, Scott Ellis CFP,MCP,MCTS,L.L.M. Solutions Architect

    Thursday, December 20, 2012 10:44 PM
  • Thanks - I've used that method on a number of other forms, but in this case I need to include reports and graphs, so I wanted to consolidate all of the links (buttons) on a SharePoint page.  I guess it's time for my users to learn how to change views on their own.

    Thanks for the reply and have a happy holiday!!! 


    David

    Friday, December 21, 2012 2:35 PM
  • As DigitalMacyver has stated, you cannot link to a form view. However, you can set the current user when the form loads and use a rule to switch the view depending on who the user is. For example, you can then create a rule that runs on form load to check a list of Managers in a SharePoint list. If the current user name is in the manager list, then switch to a manager view.

    Friday, December 21, 2012 3:02 PM