There are 2 infopath form libraries- libraryA and libraryB. When i open a form in libraryA and click a custom button in it, it should redirect to libraryB. In the infopath code behind file, i have the following in the button click event:
SPUtility.Redirect("URLXX", SPRedirectFlags.DoNotEndResponse, HttpContext.Current);
The redirection is working and going to libraryB, but after redirection, the contents of the form libraryB are not loading properly - Its throwing this javascript error: Error: 'ctx1' is undefined. If i set up Group By, the form contents are not loading. But without Group By, the contents are loading. Also look and feel of the libraryB is disturbed too.
Can anyone suggest a solution for this. Thank you.