susannanam
Member
hi all,
after filling in the form and saving the record, i would like to redirect to the just saved record so that the user can see its created student number. sounds easy and i found a lot of info but i cant get it right. i tried the redirect plugin and the php pluging (at the end of form submission).
the problem might be that the pk is not int and autoincrement but a string (automatically built by php when saving and writing back onto the form). that all works perfectly fine, the record is saved correctly in the database.
i have tried e.g. the following without success:
redirect:
index.php?option=com_fabrik&view=form&formid=59&rowid={rowid}
----
redirect:
index.php?option=com_fabrik&view=form&formid=59&sh2m8_student___student_id={sh2m8_student___student_id}
----
php:
$student_id = JRequest::getVar('sh2m8_student___student_id');
global $mainframe;
$mainframe->redirect('index.php?option=com_fabrik&view=form&rowid=".$student_id');
what would the correct syntax be to redirect to the record please? thanks for anyhelp
after filling in the form and saving the record, i would like to redirect to the just saved record so that the user can see its created student number. sounds easy and i found a lot of info but i cant get it right. i tried the redirect plugin and the php pluging (at the end of form submission).
the problem might be that the pk is not int and autoincrement but a string (automatically built by php when saving and writing back onto the form). that all works perfectly fine, the record is saved correctly in the database.
i have tried e.g. the following without success:
redirect:
index.php?option=com_fabrik&view=form&formid=59&rowid={rowid}
----
redirect:
index.php?option=com_fabrik&view=form&formid=59&sh2m8_student___student_id={sh2m8_student___student_id}
----
php:
$student_id = JRequest::getVar('sh2m8_student___student_id');
global $mainframe;
$mainframe->redirect('index.php?option=com_fabrik&view=form&rowid=".$student_id');
what would the correct syntax be to redirect to the record please? thanks for anyhelp