This topic is locked
[SOLVED]

 after add not working

3/5/2012 1:25:40 PM
PHPRunner General questions
D
danaci author

hi,

after add event

header("Location: alindi_list.php");

exit();

on insert new record press save button link changing alindi_add.php# on adress bar and not working(
header("Location: alindi_list.php");

exit();
)
best regards.

C
cgphp 3/5/2012

If you are using inline add (like popup), remove the header code from the "After record added" event and enter the following code in the "Javascript onload" event of the add page:

this.on('afterSave', function(formObj, fieldControlsArr, pageObj){

location.href = "alindi_list.php";

});
D
danaci author 3/5/2012

thnx christian