Multiple use of dynamic form in Blog

bytekultur 04 Sep, 2012
Hi all,

our client wanted to have a very simple event registration form that sends an email to him, and he should be able to embed it into his articles - so via the plugin. As he needs to have custom checkboxes that vary for each instance and also needs several instances on a page (i.e. in a blog), I extended the chronoforms plugin a little. If anyone is interested - please tell me.

It works fine apart from the fact that the output seems to not be single instances but all copies of the same - this is visible when I send the form and the serverside validation outputs an error - the error is placed above each instance of the form - same thing when I send the form and use a "thanks message" action, and it even sends the email twice if I have to of the same forms on one page.

I have solved the problem with a javascript validation (serverside just as security backup) and a manual redirect&exit process to a thanks page. I also had to copy the Chronoforms HTML Class into my plugin (as I don't want to hack the component) to change a line or two.

It works like this, but I think it is still a little bit of a hack or dirty solution and I would like to improve. I seem to understand that it has to do with the way chronoforms outputs the HTML - from a buffer.

Is there a better way to solve this without touching the chronoforms component code? So that I could have error and thanks messages posted only above the form which was actually sent, and not use that buffer for the actions?

Thanks in advance for your thougths,
Terry
Max_admin 04 Sep, 2012
Hi Terry,

Here are few things to check:

#1- you have the latest versions.
#2- please run a test with SEF OFF if its ON
#3- set the "Relative URL" to "No" under the form Edit page.

Let me know your comments after trying that.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.