Set $nexturl before opening the native Form View. After a successful ordinary save, KAS resolves the destination through its existing submission flow; no custom redirect is needed.
$nexturl = getPath([
'menuName' => 'CATALOG', 'submenuName' => 'ITEMS',
'pageName' => 'VIEW ITEMS'
]);
$form = 'open';
include('core/form_view.php');
Use your actual registered names. $nexturl=$self_url returns to the current page. $next_url and $nextpage are not the destination variable consumed by this form implementation.
Continue editing a newly created row
$nexturl = getPath([
'menuName' => 'CATALOG', 'submenuName' => 'ITEMS',
'pageName' => 'EDIT ITEM', 'type' => 'self_edit',
'optiontype' => 'FU'
]);
Use type=edit with an explicit id when opening another existing row. query carries an optional query string. Set these values before $form=open, include native fields and a save button, and close the form normally. Failure responses must stop success navigation. See getPath() for compatible positional routing and pagination.
Full arrays are the modern extensible configuration. Strings remain supported legacy shorthand/quick syntax. Prefer full arrays for new definitions; use only keys supported by the owning field or component.