Form doing AJAX and showing results in the page?
Hi all,
I want to make a small form, which submits a url to a service, and gets back some text.
In chronoforms 5, I have modified the HTML (Render Form) to use AJAX, so as submission happens throuh AJAX, and the page stays the same.
However, what happens is that the form just disappears. Looking at the generated javascript, I see that the form is replaced with what the service returned. Is there a way to not replace the form, but direct the output to another page element?
What I want to achieve, is the page & form to remain unchanged, and show the result just below the form.
I want to make a small form, which submits a url to a service, and gets back some text.
In chronoforms 5, I have modified the HTML (Render Form) to use AJAX, so as submission happens throuh AJAX, and the page stays the same.
However, what happens is that the form just disappears. Looking at the generated javascript, I see that the form is replaced with what the service returned. Is there a way to not replace the form, but direct the output to another page element?
What I want to achieve, is the page & form to remain unchanged, and show the result just below the form.
Hi petasis,
You will need to add your own custom AJAX code then, you can simply copy the code generated by Chronoforms from the page source then remove the line which replaces the form!
Let us know if you need help with this!
Regards,
Max
You will need to add your own custom AJAX code then, you can simply copy the code generated by Chronoforms from the page source then remove the line which replaces the form!
Let us know if you need help with this!
Regards,
Max
This topic is locked and no more replies can be posted.