@sterre, good to know this helped

$page->id = 0; // KUID:get_data() hack
$page->creation_date = $FUNCS->get_current_desktop_time(); // KUID:shortcode_handler() hack
<cms:if k_cur_form_mode eq 'create'>
<!-- find newly created page and edit it -->
<cms:pages masterpage=k_template_name id=k_last_insert_id show_future_entries='1' limit='1'>
<cms:db_persist
_masterpage=k_template_name
_mode='edit'
_page_id=k_page_id
k_page_name="<cms:show k_page_name />-xxx"
k_page_title="<cms:show k_page_title /> xxx"
required_relation_field = frm_required_relation_field
/>
</cms:pages>
</cms:if>
KK wrote: Please test it and let me know if it helps.
Thanks.