Hi,
I have two forms embedded in a Joomla page. When submitting one and the page refreshes, the autofilling of the second form takes the data from the submitted form and fills it out. Also the email address fields show errors HTML code and "the email address is protected from spambots"
Using ajax submit causes everything to work fine.
Thanks,
Brent
I have two forms embedded in a Joomla page. When submitting one and the page refreshes, the autofilling of the second form takes the data from the submitted form and fills it out. Also the email address fields show errors HTML code and "the email address is protected from spambots"
Using ajax submit causes everything to work fine.
Thanks,
Brent
Oh, I did notice one more thing:
Ajax submission doesn't replace the "Display Message" from the onload event, it just replaces the form.
Thanks,
Brent
Ajax submission doesn't replace the "Display Message" from the onload event, it just replaces the form.
Thanks,
Brent
Hi Brent,
You can solve this problem by making sure that the fields names are different in both forms!
Regards,
Max
You can solve this problem by making sure that the fields names are different in both forms!
Regards,
Max
Did you happen to have any info on the ajax submission only replacing "form" and not the "display message"
example:
and the result after ajax submission shows on the page
onload. Display Message
onsubmit.Display Message
example:
on load:
Display Message
Form
on submit:
Display Message
and the result after ajax submission shows on the page
onload. Display Message
onsubmit.Display Message
That didn't quite display correctly. It was
onload
1. Display Message
2. Form
onsubmit
1. Display Message
onload
1. Display Message
2. Form
onsubmit
1. Display Message
Yes, that's normal, when your submit the "Form" using AJAX, only the form is replaced by the response, if you have other actions output then this will not be replaced, an alternative is to use a "custom" element in your form in order to replace it!
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.