Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi there

I successfully created a form that creates a new entry (cloned page) in the database. I would like to create a follow-page after successful submission, where the customer can fill in an additional phone number in case he spoofed filling in the first form.

The problem I have is to pass the k_page_id of the newly created cloned page and pass it to the follow-up form.

Anyone an idea how to achieve this?

Kind regards,
Olliwalli
olliwalli wrote: Hi there
The problem I have is to pass the k_page_id of the newly created cloned page and pass it to the follow-up form.


You can use k_last_insert_id in data_bound (only for create mode)
Here is the example
Code: Select all
<cms:form
    masterpage=k_template_name
    mode='create'
    enctype='multipart/form-data'
    method='post'
    anchor='0'
    >
    <cms:if k_success>
      <cms:db_persist_form />
      <cms:if k_success>
        <cms:show k_last_insert_id />
        <cms:show k_last_insert_page_name />
      </cms:if>
    </cms:if>
    <!-- form goes here -->
</cms:form>
2 posts Page 1 of 1