Making save button go back to edit view not detail view

Hi,
I’m looking for a way in which to make it so that when a user clicks the save button in edit viewing loads back in edit view and doesn’t go to detail view.
How can I accomplish this?
Thanks

Hi there,

You may be able to do this as a global logic hook. Looking at the sugar docs will help with creating logic hooks.

Thanks,

Will.

I managed to do it easily with a logic hook, however it also redirects after updating with mass update which is not desired.

Is there a way to use an if statement that checks if the record is in edit view?