locked
Opening Another Link In Sharepoint RRS feed

  • Question

  • I have a button that is set to close and saves the form.  Is there a way that when the form is closed, instead of it going back to the form library, I would like for it to go to another site or page.  Is this possible?

    Tuesday, April 24, 2012 8:15 PM

Answers

  • Hi Brother,

    It's possible, what type of botton you used?
    If you are using the SharePoint default SaveButton, you can use the Form Action button instead of it. See the following steps:
    1、Open your SharePoint Designer,
    2、Go to your form page,
    3、Add a Form Action botton instead of your default button
    4、Attach "commit" action、"Navigate to Page" action to it.
    Else if you are using the html button, you can use javascript to monitor the page close event:
            function writeContent() {
                document.write("lhan");
            }
            window.onbeforeunload = navigateToUrl;
            function navigateToUrl() {
                window.open(url);
            }

    Thanks,
    Lhan Han
    Thursday, April 26, 2012 9:19 AM
    Moderator