[Résolu] Form redirect not working after form submission
Ce fil est résolu. Voici une description du problème et la solution proposée.
Problem:
A form to publish posts is supposed to show the published post after submission, but does not redirect.
Solution:
The issue was that a redirect delay was included in the form, and a bug meant that anything other than a delay of zero broke the redirection.
This was fixed with an update to Forms 2.2.1.1
This support ticket is created Il y a 6 années. 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.
I have a cpt, Customers with a cred form. After the form has been completed (image1) it is set to display the post. When it displays the post it only shows a "1" (Image 2) instead of the template set for customers single post. Here is the code for the template that should display.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi there
Sorry for the slow response.
With the settings you have, what should happen when you submit the form is that the form redirects to the URL of the newly published post, adding a cred_referrer_form_id URL parameter. From your screenshots I can't see the URLs, but it looks like you stay on the same page, is that right?
First, check your browser console for JS errors.
That seems more likely than a PHP error, but you should also check your debug log.
I haven't observed this myself, and just tested it again to be sure, so it seems to be something specific to your installation.
Which means, first, ruling out any conflicts from other plugins or the theme.
Could you please try disabling the non-Toolset plugins and switching theme to twentyseventeen then trying again? If the issue disappears then it should be possible to determine the source of any conflict by a process of elimination.
Let me know how the above goes so I can see how to proceed.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
I installed a copy locally and tried various permutations and combinations to get past the issue and could not, but I was unable to reproduce the same on my own test site.
I'm escalating this so that my colleagues can take a deeper look, and I'll report back with their findings.