Skip Navigation

[Resolved] Split: Form error when used ont he archive

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.

This topic contains 8 replies, has 2 voices.

Last updated by Christopher Amirian 4 months, 3 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2708992

Hello Christopher,
thanks for finding the issue, deactivating Toolset Forms I could edit the archive and remove the form. I thought that the issue was with the Kadence Modal so then placed the form in a modal on a test page (see page aa2) and it worked fine. I then put the modal and the form back into the archive and it still works, but it returns a strange message here (see picture), can you explain why ? they are exactly the same form and field ....
thanks

#2708993

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Usually an error like that is when the field which is used in the form is not available in the custom post type.

Please try with the steps below:

- Check if the same form works without the pop up and adding it directly to the page in archive.
- Check if you remove search-url field it will wok ok?

Thanks.

#2709013

Hello Christopher,
In order to understand if the field is damaged in some ways I have created a second URL field and replaced the first one in the form and now it works well also in the archive, no more field error message. The only thing is that quite some time ago your colleagues helped me to save the current page URL with all view selections as URL into the field using the following JS:
var $ = jQuery.noConflict();
$(document).ready(function() {
$("#cred_form_18384_1_1_search-url-2").val(window.location);
});
This JS worked fine until recently, it saved the full URL with all selections made by the user in the view, now it saves something like this instead:
hidden link

What could have changed ? to me this was a done feature, didn't change anything recently .... could this be a JS conflict ? anything changed in JS syntax ? why the first field was damaged ?
thanks

#2709231

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I tried to open the URL below but it shows a 404 page:

hidden link

I was logged in.

Would you please double check and make sure you give the correct URL? You can set the next reply as private.

Most probably the issue is that the slug of the field is changed or something in the ID generation here: #cred_form_18384_1_1_search-url-2

I will need to see the code to be able to know.

Thanks.

#2709306

Hi Christopher,
I think I found the solution, but I cannot edit the page due to an issue between Toolset and WP 6.6.1 (see my other ticket about patterns) as soon as we solve that I will continue with this ticket, please wait
thanks

#2710218

Christopher Amirian
Supporter

Languages: English (English )

Sure thing. Thank you.

#2710560

wait mode on

#2710869
SEARCH3.jpg

Hi Christopher,
meanwile your developers are looking into the other issue I could progress here. I've found out that actually the JS works saving the correct address into the (new) field (see picture). I still don't understand why the forms saves something different into the field instead, like hidden link that means nothing.
Can you explain it ?
thanks
Regards
Nicola

#2711123

Christopher Amirian
Supporter

Languages: English (English )

Hi Nicola,

It is hard to know what is going on without having access to the form itself.

I'd appreciate it if you can test the form on a new page without the pop up and the captcha and see if it works ok and the hidden field preserves the user selection or not.

Also try to change the form submission from Ajax to normal and see if that has anything to do with the issue?

Finally, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Give us the link of the test page that you added the form and it is not saving the user selection.

Please tell me what to do to create a scenario with data to be able to see the issue.

Thanks.