Forums

Event Switcher and Auto Server Side Validation

PaoloOfficinamundi 31 May, 2013
Hi,
this is my first post.

I use Joomla 2.5.11 and ChronoForms V4 RC3.5.2.
I have the following problem: I have created a form in which the user makes a choice via radio buttons, and depending on the response form displays certain fields.
I run this thing with Event Switcher.
In each case I inserted the various actions, internal to an Auto Server Side Validation, for example, save in the Database, sending emails, etc. ..
This form I realized locally with XAMPP 1.7.3 within the backup of the site.
In local everything works correctly, then I exported the form, and I have imported the form into the actual site.
If I'm going to open the Wizard of the form, and then I click on Save, the actions inside the Auto Server Side Validation disappear, and if I try to put them back and save, they disappear again.
I repeat that the site is the same, so also the databases are the same.
If, however, in the form in the online site, I add an Auto Server Side Validation out the Event Switcher, individual actions do not disappear when I press Save.

What could be the cause?

Thanks in advance, and I apologize for my English.

Paolo
GreyHead 01 Jun, 2013
Hi PaoloOffcinamundi,

Please see this FAQ which may help if servers security settings are the problem.

Bob
PaoloOfficinamundi 04 Jun, 2013
Thanks for the reply.
The tech of the server told me not to change these parameters, as the security of the server itself it would be compromised.
I checked the DB, and in the table on the form I have 14 fields of type VARCHAR (255), the number of fields per row should still be within the limits.
I have other forms on the same site, but each has a table to itself, in which data is stored.
Are there other possible solutions?

Paolo
GreyHead 04 Jun, 2013
Hi Paolo,

a) Change web-host

b) Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
PaoloOfficinamundi 04 Jun, 2013
I sent the form to PM.
I tried to do a test on another host, and in that case I have not encountered any problems, but the site was not the same, so the situation was different.
I can not change the host for this site.
Within the site in which reflected the problem, there are several forms (roughly a dozen), each of which has its own table within the DB to save your data.
The form does not have many fields in them, but I do not know if this can also affect the problem.

Thank you!

Paolo
GreyHead 07 Jun, 2013
Hi Paolo,

The form looks OK to me. I can only assume that you have hit a server problem either because of the number of inputs or the nesting of events and actions inside one another.

I would keep the nesting to the minimum. From the sample for you may not need the switcher; it might be just as simple to use a Custom Serverside validation action and write custom code to check the required inputs.

In any case I'd remove everything from the Validation On Success event actions that does not *have* to be there and put it either into the Event A/B success event; or better, into the main Success event if it is more or less the same for both cases.

Bob
PaoloOfficinamundi 10 Jun, 2013
Hi

Thank you very much for your reply.
I deleted the nested actions, and I have simplified the form.
Now the problem that I had no longer appears, however, by inserting a Server Side Custom Validation I have a problem: I followed these instructions:
http://www.chronoengine.com/faqs/2592-how-do-i-use-custom-serverside-validation.html
But if I insert this control:

if (isset ($ form-> validation_errors) && count ($ form-> validation_errors)> 0)
   return false;


The form is always false, even $ form-> validation_errors do not see any error on the screen.

There could be a reason?

Paolo
PaoloOfficinamundi 11 Jun, 2013
I should have solved, now it seems that the Server Side Custom Validation is working properly.
In practice, I have eliminated one level of nesting in this, and now it seems to work on the server.
Thank you.

Paolo
This topic is locked and no more replies can be posted.