Forums

2 forms on one screen

brentw 23 Oct, 2014
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
brentw 23 Oct, 2014
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
Max_admin 23 Oct, 2014
Answer
Hi Brent,

You can solve this problem by making sure that the fields names are different in both forms!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 23 Oct, 2014
1 Likes
Hi Brent,

And please see this FAQ for the JavaScript in the email box.

Bob
brentw 23 Oct, 2014
Did you happen to have any info on the ajax submission only replacing "form" and not the "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
brentw 23 Oct, 2014
That didn't quite display correctly. It was
onload
1. Display Message
2. Form

onsubmit
1. Display Message
Max_admin 23 Oct, 2014
1 Likes
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.