PostSaveAction in Modern
- This topic has 2 replies, 2 voices, and was last updated 1 year, 7 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Modern DFFS › PostSaveAction in Modern
Is there a way to determine if the user clicked “Save and open in edit mode” OR if they clicked “Save and exit” with javascript. There are parameters (exit, autosave), but the exit parameter is true for save and edit AND save and exit. The reason for this is we would like to run dffs_PostSaveAction and do a redirect but only when saving and not going to edit.
Hi,
I’ll add this info as a third parameter (boolean) to the function in the next version – so you can use it like this from v1.1.4.0:
function dffs_PreSaveAction(exit, autosave, goToEditForm){
// Your own code here
}
I hope to get the new version out later this week.
Alexander
Thank you!