Home › Toolset Professional Support › [Resolved] How to avoid the url message after cred submission
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
Tagged: Toolset Forms
This topic contains 14 replies, has 2 voices.
Last updated by Pat 5 years, 7 months ago.
Assisted by: Minesh.
Hello,
I have created a Cred form and defined the redirection after submission to be : display the form again.
When I do this, after submission, I have the same url + a message starting by : &_tt=xxxxxx
As I have several forms in the same page, the issue is that with the url containing the submission messsage, this is pre-filling the fields of the other cred forms.
Is there a way not to have these submission url message?
For info, whatever the redirection you chose (same page with form reload or specific page or post), you have alway this url message submission !
I have also tried to add a cre_sucess_redirect but this is not changing the issue !
Regards
Pat
Hello. Thank you for contacting the Toolset support.
Well - as I confirmed with your another ticket that the hook cred_success_redirect just works fine for me.
=> https://toolset.com/forums/topic/need-confirmation-on-cred_sucess_redirect-bug-on-documentation/#post-1254069
So, if you can share access details I will check why cred_success_redirect not working on your install.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
Before giving you access to the site (which is in full test actually) :
1. Could you confirm that the message url parameter is sent each time a cred is submitted? If not, what are the causes that fire this kind of url message?
2. Can you explain what are the info related to (?tt=xxxxxxxx)
3. Is there a way to avoid having this message in return?
Regards
Pat
1. Could you confirm that the message url parameter is sent each time a cred is submitted? If not, what are the causes that fire this kind of url message?
=> When I submit the form, I get the following URL param: /?cred_referrer_form_id=1622
-- Where exactly you added the form?
2. Can you explain what are the info related to (?tt=xxxxxxxx)
==> Can you please share edit screenshot of the form you are using so I can check the settings and check.
3. Is there a way to avoid having this message in return?
==> When exactly you get this message, as I do not get it, as I shared in another ticket I successfully redirected.
Hi Minesh,
I think we will not go very far with these go and back questions. Could you re-open the private answer and I will give you access to the site.
Regards
Pat
Sure - I have set the next reply to private which means only you and I have access to it.
Just some additional info :
- I have a page where I'm displaying custom taxonomies thanks to a Views
- In this Views, I have placed a modal window with a Cred inside. On each line of the displayed taxonomies, I have a link to open the modal window for this specific taxonomy.
- This Cred enables to modify some terms meta. For that, it is a Cred modification that modify a specific post (does not serve in the site, just to affect the Form to a post) and then, I have a cred_save_data that makes all the needed modifications :
1. update a specific terms meta from the taxonomy that have been chosen in the list
2. Update the name of the taxonomy with the chosen name in the Cred.
In addition, I have a cred_success_redirect that returns to the initial page (where the Views list the taxonomies)
So normally, I should return to the initial page, but what I'm getting there is something like : hidden link
Hope this helps
Regards
Pat
Well - _tt is the current timestamp that wll help Forms to track the requests made through forms.
As you are using modal, this needs custom adjustments as normally you should add form to page or post. I need to check on your install whats going wrong there and for that I need problem URL and access details.
Hi Minesh,
I think our answers have crossed and I have no more the private answer available.
Could you please turn it on again?
Thanks
Pat
Well - but what you want me to check as I do not see any option to remove the _tt url param.
Hi Minesh,
Sorry to be long for this answer.
In fact, what I have noticed is that if the form submission was without issue, then the url got some additional parameters but they are not interfering with a new submission after page reload.
On an other hand, if we get an error during submission, then, the url parameters contains this tt123456789 and then, the page is no more able to manage another submission.
So, it seems that this tt123456789 is more something to alert when the submission goes wrong.
I have worked on the different hooks and now, it seems that the submission is fine.
My last issue is that it could be difficult to validate 100% of a hook and I'm wondering if there could be a way to redirect to a specific page if the submission goes wrong and not have this page with the tt123456789 parameter?
Regards
Pat
Well - what if you try to use wp_redirect() or header() function within the validation form hook "cred_form_validate" and if the validation is not passed redirect user to some other URL?
More info:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
Hi Minesh,
I think this is a good idea.
Now, could you confirm there is no way to avoid having any url parameter after a cred submission (is it something that is available in the current Toolset settings or could be added in the future?)
Regards
Pat
I do not see any way until you apply some custom code or it will be a feature request.
Please feel free to submit a feature request using the following link:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Understood Minesh.
Thanks for your time.
Pat