I have a form which i show with the shortcode plugin on my K2 category page. But when i submit it keeps loading. Doesnt submit anything. I checked the debug and the article_id is NULL. maybe that is sthe issue? On my article page it works great.
The article_id is NULL because it's not a Joomla content article page.
Do you have AJAX enabled ? if yes then does it work with AJAX disabled ?
No i disabled AJAX because there is a bug when you submit the form it duplicates itself in the response instead of just the message. When i disable the AJAX it just keeps loading and it never actually submit the page.
Does the browser console show any errors ? the form should submit without AJAX at least, if it does not then some JavaScript may be blocking it
posting the page URL may also help
No thats the weird thing, it doesn't show any errors... this is the link: https://www.one2track.nl/kennisbank. When you scroll down you see a form. The same forrm is on https://www.one2track.nl/one2track/contact and that does work, so i think its because of the K2 view.
Your form submit button on the page that does not work is loading multiple tracking scripts when clicked from facebook, tiktok and clarity.us and other websites, this is causing a conflict I think, try to find what's calling all that and disable it on the website then test the form again
Weird thing it works on Contact and there also the same scripts load. I tried with all disabled, and its still not working. I also removed all the search functionality, still not working.
load the form inside a module on the K2 page, and disable the one inside the K2 content, does the module form work ?
Nope doesnt work unfortunately. Same issue. Just a loading state of the form, nothing next. I tried with a content plugin and then a form code but also the Chronoforms8 module, both do exactly the same issue.
What about the other page ? what kind of page is it ?
And did you try the form using the plugin in a normal Joomla article page ?
Yes as i mentioned before the contact page is a normal article. There it works great. It's this specific view thats why i mentioned it. You can emulate the error by downloading J5 + K2forJ4 and then embed the form there
it's difficult to identify the source of this issue because so many scripts are loaded on the page and they intercept the form "submit" event before ChronoForms does as shown below, any of those can block the submit:

You have removed the form at the first page so I could not check that again now
EDIT: THANKS MAX! I figured it out because of your screenshot, there was intefering script on the K2 page, and I removed that and now its working again. Thank you!
So if anyone has this same issue. Just check the event listeners, in my case it was hte k2.js script that listened for forms.
Great, I'm glad that was helpful. :)
