Skip Navigation

[Closed] redirect from a form to an other edit form

This support ticket is created 2 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 2 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2201955

hello there
- i've created a page where i've inserted a create content form "id = 00 "
- then i've created an edit form " id = 11 " (for the same content mentioned above because the content is too long and needs to be separated to parts)
- then i've inserted the edit form " id = 11 " in a content template " id = 111 "
- then i used the redirect_success hook below to redirect :

add_filter('cred_success_redirect', 'stegvis_skjema_el_test',10,3);
function stegvis_skjema_el_test($url, $post_id, $form_data)
{
if ($form_data['id']==00)
{
$arr = array('content-template-id'=>111); //the step 2 CRED form template ID
$url = add_query_arg($arr, $url);
}
return $url;
}

the goal is : when submitting the create form " id = 00 " , would take me directly to the edit form " id = 11 " in the content template " id = 111 "
Instead : when submitting the create form " id = 00 " , nothing happens !!
(Ps : i've set the submitting action for the create form " id = 00 " to : Go to specific post , without mentioning it )

#2202293

Hello,

The problem you mentioned above is abnormal, please check these:
1) Check if there is any JS/PHP errors in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, and test again

3) Since it is a compatibility issue, if you need more assistance for it, please provide a test site with the same problem, fill website credentials in below private message box, also point out the problem page URL and for URLs, I need a live website to test and debug.

#2202759

Hello
Thanks for ur reply
I guess i did it correctly but something isn't write ?
I will debug the systeme as u mentioned earlier and send u my feedback
Best regards

#2204405

Please update here if you need more assistance for it.

The topic ‘[Closed] redirect from a form to an other edit form’ is closed to new replies.