Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page is reloading and form is not sent #4

Open
webmasterab opened this issue Apr 5, 2024 · 5 comments
Open

Page is reloading and form is not sent #4

webmasterab opened this issue Apr 5, 2024 · 5 comments

Comments

@webmasterab
Copy link

I have a Yootheme template that contains a module for a contact form.

When I activate the plugin, it is neatly listed at the bottom of the site.

However, when I want to send in the form, it is checked whether everything has been completed.
But immediately afterwards the page is refreshed and everything has to be done again.

The form cannot be used if the plugin is enabled.

@SharkyKZ
Copy link
Owner

Which contact module is that?

@webmasterab
Copy link
Author

webmasterab commented Apr 11, 2024 via email

@SharkyKZ
Copy link
Owner

SharkyKZ commented May 7, 2024

I looked into this and there are two issues. One is a JavaScript conflict between the module and captcha plugin. This one I can fix by providing an option to run captcha on page load and not on form submit as it currently does. One thing to note about this is that captcha tokens expired in 2 minutes. So this isn't great for long forms.

Second issue is that the module doesn't pass the captcha token to the plugin. This is something that will need to be fixed in the module itself so you'd have to ask the module developers about this.

@webmasterab
Copy link
Author

I will then report it to the module developer.

It's strange because it works on a Joomla installation that has already contained the captacha since version 4.

But that plugin is no longer available in Joomla 5.
And that's why I'm running into this now.

Hopefully it can be solved so that it can be used.

I will keep you informed about the module and the ticket I submit there

@fire2
Copy link

fire2 commented Dec 2, 2024

However, when I want to send in the form, it is checked whether everything has been completed.
But immediately afterwards the page is refreshed and everything has to be done again.

I experience the same issue with Contact Enhanced Pro.

This one I can fix by providing an option to run captcha on page load and not on form submit as it currently does. One thing to note about this is that captcha tokens expired in 2 minutes. So this isn't great for long forms.

This isn't really a solution. The plugin should take care of getting and validating the token when the form is submitted, but it is not responsible for submitting the form itself. That is the responsibility of the form/contact component. If this is not possible, the least it can do is to not submit the form if it is invalid (empty required fields, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants