Is there a way to use "Redirect to DispForm" on an EditForm?

Home Forums Classic DFFS Is there a way to use "Redirect to DispForm" on an EditForm?

Viewing 1 reply thread
  • Author
    Posts
    • #16024
      chgrnet
      Participant

        Hello –

        I love that you added this redirect feature for new form, and the return to edit form from edit form. Is there any way I an go from edit form to display form with the code?

        Thanks.

        Christine

      • #16026
        Alexander Bautz
        Keymaster

          I’m glad you like the new feature. There is no dedicated “button” to do this, but you can use this code snippet in the Custom JS in EditForm:

          spjs.dffs.redirect(location.href.replace(/editform.aspx/i,"DispForm.aspx"),false);

          Alexander

          • #16318
            chgrnet
            Participant

              Is there a way to associate this code with a button, either near the other buttons on the bottom or one in the ribbon?

              Could you add the ability to “redirect to the display form” on the edit form?

              • This reply was modified 7 years, 8 months ago by chgrnet.
        Viewing 1 reply thread
        • You must be logged in to reply to this topic.