skyrun
Active Member
on a list, i have a button (add using template) that loads a fabrik form in a modal box:
View attachment 17423
you can see the url above if you have access to testlocation.skyrun.com/skytrax.
working great so far...
when i press 'create' i use a php form plugin that copies the template into a new row which of course know the id of. (this works too).
but then i would like for that row to open up on the main browser window in place of the modal and prior page (ie, be redirected to: skytrax-manage/work-orders/form/180/[new_id_here]).
but i can't seem to figure out how to make the form in the modal redirect.
here what i have tried in the php form plugin onAfterProcess:
what would i need to do in order to redirect to skytrax-manage/work-orders/form/180/[new_id_here]. is there a 'redirectURL' parameter (or documentation on what parameters there are?)
View attachment 17423
you can see the url above if you have access to testlocation.skyrun.com/skytrax.
working great so far...
when i press 'create' i use a php form plugin that copies the template into a new row which of course know the id of. (this works too).
but then i would like for that row to open up on the main browser window in place of the modal and prior page (ie, be redirected to: skytrax-manage/work-orders/form/180/[new_id_here]).
but i can't seem to figure out how to make the form in the modal redirect.
here what i have tried in the php form plugin onAfterProcess:
-
PHP:
echo "<script>window.location = 'skytrax-manage/work-orders/form/180/".$newwoid."';</script>"; exit;
-
PHP:
echo '{"msg":"Work Order Created from Template {add_work_order_using_template___template}","url":"skytrax-manage\/work-orders\/form\/180\/'.$newwoid.'","baseRedirect":true,"rowid":"'.$newwoid.'","suppressMsg":false}'; exit;
what would i need to do in order to redirect to skytrax-manage/work-orders/form/180/[new_id_here]. is there a 'redirectURL' parameter (or documentation on what parameters there are?)
Last edited: