Changing default view on click event - InfoPath Dev
in

InfoPath Dev

Changing default view on click event

Last post 06-21-2010 01:26 PM by aruna akella. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-21-2010 12:23 PM

    Changing default view on click event

    Hello,

    I found here(http://www.infopathdev.com/forums/p/11426/40459.aspx) how to change the default view on load, however I'm trying to set up my form to do so on the click of a button instead. Does anyone have any advice on how to do this? I've only been able to find resources dealing with Loading events.

    Essentially, I'm trying to set it up so that when the user clicks a submit button, it changes the view to that of their supervisor and e-mail it to the supervisor as an attachment. I close the form immediately at the end to make sure that the initial user can't access their supervisor's section. My issue is the attachment for the supervisor opens up in the default view instead of the supervisor view I had switched it to. I removed the views from the toolbar listing to make sure the initial user doesn't try shenanigans.

    Thanks for any help/advice you have. No one at my office has really worked with Infopath, so I'm flying blind. 

  • 06-21-2010 01:26 PM In reply to

    Re: Changing default view on click event

    You can achieve that by adding an attribute, and setting it to true just before email submit, and in the form open rules - check for that attribute, if it is true - then open the supervisor view.

    Hope that helps!

    Aruna Akella
    Qdabra® Software / InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.