Switch to different view and close the form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Switch to different view and close the form

Last post 04-27-2012 03:05 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-27-2012 11:59 AM

    Switch to different view and close the form

    I created an infopath form with multiple views, I want to switch the view and close the form after user submits the form. I'm using the rules for Submit, the rule submits the form to the form library, then switches the view and then close the form. The problem is when the form closes, it shows the message The form is closed but it does not return to the form library. If i delete the switch rule, the close option works fine. Is there any workaround to solve this? And the second issue, i cannot save the form with the second view. When I open the form after user submits, i see the default view but not the changed view, hope this makes sense. Thanks
  • 04-27-2012 03:05 PM In reply to

    Re: Switch to different view and close the form

    Hi - switching views on submit will not make the form open with the last view used - so you may as well remove that rule action since it is causing other issues for you.

    I'd add a form load rule instead that switches to the view I want to use.

    You could add a field to your main data source for tracking the status for the form, for example - when the user clicks the button, set the status to "Submitted" and then submit the XML and close. In your form load rules, check the status field and if it is equal to "Submitted" switch to the view you want to use. Does that make sense?

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.