Redirect

Forums Dynamic Forms for SharePoint Redirect

Viewing 2 reply threads
  • Author
    Posts
    • #7349
      William Summers
      Participant

      Is there a way to redirect users when a form is submitted? Like in InfoPath you could redirect to another view. I assume I could make a confirmation page of the sorts but how would I redirect on submit? Thanks!

    • #7359
      Alexander Bautz
      Keymaster

      There are a few methods – like the one described here: https://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/

      Unfortunately this will not work for SP2013, but you find one workaround in the comments below: https://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/#comment-195397

      Hope this helps,
      Alexander

      • #8855
        William Summers
        Participant

        Good day sir. This worked great for getting from one form to another. I looked through your forums and cannot come up with a way to redirect a user to a simply URL like http://www.mysite.com
        I am using the current version of DFFS
        I am using sharepoint 2013
        I used this $(“input[id$=’diidIOSaveItem’]”).attr(“onclick”,”window.history.back()”); but of course that did not work out that well…only partially because I do notknow what I am doing.

        Is there a bit of code I can add to the Custom JS in DFFS that will submit that data on save and redirect a user to a URL?

        Thanks!!!

    • #8941
      Alexander Bautz
      Keymaster

      Hi,
      Sorry, but currently I don’t have a good solution to this in SP2013. The method used in previous versions does not work anymore and I have not figured out a good solution for out of the box forms opened in a dialog.

      If you are not using a dialog, you can use the “Source rewrite” as described in the link in my answer above.

      If you however use a custom function to open a form in a dialog you can set a callback function to redirect the user when the form is submitted.

      Alexander

Viewing 2 reply threads
  • You must be logged in to reply to this topic.