Feature request
- This topic has 3 replies, 2 voices, and was last updated 3 years, 7 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Modern DFFS › Feature request
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.
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
Very good Alexander. However, this would change the normal “Save” function (Which I still wanted untouched).
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