Hello. Thank you for contacting the Toolset support.
Actually, with CRED Ajax the thing is that it will not reload the whole form but the thing is that its making ajax call to save the CRED entry. To implement multi-part form with another form is not possible right now as it needs redirection to load another form with same entry.
However, this feature is already requested by other users and our developers are working on this in order to implement this feature in near future.
You need to use same redirection method as you were using before:
Could you please try following steps:
1)
Create two pages with title "step1" and another page with "step2"
=> Create your CRED form for "step1" with Ajax
+ Within section "Form Settings"
- Choose what to do after visitors submit this form: Select "Create" content"
- Choose what to do after visitors submit this form: Select "Go to a Page" and select page "step2"
- Add your CRED form fields
2)
=> Create another CRED form for "step2" with Ajax
+ Within section "Form Settings"
- Choose what to do after visitors submit this form: Select "Edit content"
- Choose what to do after visitors submit this form: Select "Go to a Page" and select page "step2"
- Add your CRED form fields
3)
=> Add CRED form to page step1 and step2 respectively.
4)
Add the following code to your current theme's functions.php file
add_filter('cred_success_redirect', 'step2_redirect_func',10,3);
function step2_redirect_func($url, $post_id, $form_data){
if ($form_data['id']==366){
$arr = array('cred-edit-form'=>368,'cred-post-id'=>$post_id); //the step 2 CRED edit form id and created $post_id
$url = '<em><u>hidden link</u></em>'.$_SERVER[HTTP_HOST].'/step2/';
$url = add_query_arg($arr, $url);
}
return $url;
}
Where:
366 is your step1 CRED Create form ID.
368 is your step2 CRED Edit form id.
Now, load page step1 and fill out the form and submit, it will redirect you on step2 page with your step2 CRED form.