Feature request

Home Forums Modern DFFS Feature request

Viewing 3 reply threads
  • Author
    Posts
    • #36595
      Marcus Khoo
      Participant

        It would be lovely to have a “Save and Display” option that Saves and edited item and then displays the item on the Display form.

      • #36599
        Alexander Bautz
        Keymaster

          You can do this with custom js – add this to your EditForm Custom JS:

          function dffs_PostSaveAction() {
            var url = location.pathname + "?DFFSForm=disp&DFFSID=" + getFieldValue("ID");
            var list = getUrlKeyValue("DFFSList");
            if (list !== null) {
              url += "&DFFSList=" + list;
            }
            location.href = url;
          }
          

          Alexander

        • #36601
          Marcus Khoo
          Participant

            Very good Alexander. However, this would change the normal “Save” function (Which I still wanted untouched).

          • #36604
            Alexander Bautz
            Keymaster

              I’m not sure what you mean by changing the save function? – this would do what you want and redirect to DispForm when you have saved an item in NewForm or EditForm.

              Alexander

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