Link to home
Start Free TrialLog in
Avatar of Howard Bash
Howard BashFlag for United States of America

asked on

Redirecting After InfoPath Closes

I would like to redirect InfoPath to a menu page on my SharePoint Site.  At the moment, when it closes it goes to the list which can be okay, but not in my case.

I notice the the URL has a List=some string of values and then the ID=some number for the list item if it's an edit,  and some other parameter that looks sort of like a link to where to go after the form closes.

Any help on this would be appreciated.
Avatar of Joe Klimis
Joe Klimis
Flag of United Kingdom of Great Britain and Northern Ireland image

Here are a couple of ways I have used in the past

you can edit the page and change the submit button  using for following code
<input type="button" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={thankyou.aspx}')}" />

Open in new window


but the one i have used the most can be found here
Avatar of Howard Bash

ASKER

The "here" link looks interesting....

I tried the following to modify the URL that opens InfoPath for the listitem I wish to edit.  I added the source param after that, but instead of redirecting to the source URL, it stays and displays the InfoPath message "The Form has been closed".

Here is my "new URL" which does open InfoPath for the item, but doesn't redirect to the Source URL:
https://MySITE.sharepoint.com/sites/MyCollection/Lists/Planning/somecontent%20Content%20Group/editifs.aspx?ID=3&Source=http%3A%2F%2FMySITE.sharepoint.com.com%2FSitePages%2FPlanningReview.aspx.

Please advise.

Thanks.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.