This topic is locked
[SOLVED]

 Return to list after save

4/15/2014 9:56:42 PM
PHPRunner General questions
S
Stucco author

Hi,
Is there a general way to return to the list view after saving (adding or updating) a record, instead of remaining on the add/edit page? I thought I remembered a setting but I can't find it.
Thanks!

Sergey Kornilov admin 4/16/2014

Use AfterAdd event and redirect user back to the List page.

header("Location: table_name_list.php?a=return");
S
Stucco author 4/17/2014

Hi,
I had to add

exit;


after the above line, but after that it worked great.
Thanks!

S
Stucco author 4/28/2014

Actually, this broke inline add/edit. I ended up with this as a solution.



if(!$inline) {

header("Location: mypage_list.php?a=return");

exit;

}