Very complicated InfoPath which logic is mostly in a code behind(sln) is exhibiting failure in view switching when button is clicked. This form works perfectly in development environment(with the same code) and when data connections are configured to production , it is working fine in preview mode. Nonetheless, the view switching fails when form is published as administrator's approved template in the browser?

Please give me some ideas.

The code for switching views is receiving view and view failure but none are being displayed as form only displays previous view without data.


  • What error you got? What code u have written for switching view? – Viraj Gorajia Apr 12 '16 at 6:01
  • Ok, now that i have looked into the problem, it is not the view switching, rather the form instead of propagating to the view is reopening. I have seen suggestions that it might be the url but to me url looks ok...could there be anything else i need to consider – Nemanja Sovic Apr 13 '16 at 4:16

Provide &Source parameter in url. If &Source is empty, it will reload form instead of switching view.

  • The URL is not an issue & Source exists.... – Nemanja Sovic Apr 13 '16 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.