Forums

Data Aray

rowby 28 Sep, 2012
Hi

Working on Auto Server Side validation with Chronoengine
In the server side Required field I have the following: "email, telephone, Units, Occupancy"

However when I test the form only a blank "email" triggers the Required field message. The "telephone, Units and Occupancy" fields are not affected at all and can be submitted blank.

I see the notation "... these fields should exist in the data array in order to pass this check." Is there a separate area in the wizard where I create this "data array"?

Thanks. (Sending Greyhead a beer donation via his paypal link.

Rowby
GreyHead 29 Sep, 2012
Hi rowby,

Please try removing the spaces in the list - ChronoForms isn't very good at removing them so it looks for ' telephone' instead of 'telephone'

Bob
rowby 29 Sep, 2012
Hi

I removed the spaces in the list but get the same result:
email,telephone,units,occupancy

The only one that is working is "email". And that is because I checkmarked it as required in the actual field. I assumed that "Auto Server Side Validation (0)" does not require you to do the checkmarking, since it "takes over" from client side validation.

Did I assume wrong? That is, do I still need to checkmark the actual form element? See attached screen capture.



BTW what does the "(0)" mean in next to the "Auto Server Side Validation (0)"
GreyHead 30 Sep, 2012
Hi rowby,

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.

The Client side and Serverside validation are different, there is no automatic link between them. This of the client side validation helping the user complete the form and the serverside validation checking and the data submitted and protecting you from erroneous or malicious submissions.

The (0) after an action name is an index number for the action, the second one that you add will be (1) and so on. Mostly you can ignore these, though you can also use them in custom code to reference the actions if you need to.

Bob
GreyHead 01 Oct, 2012
Hi rowby,

Please add an Event Loop action to the On Fail event of the AutoServerside Validation action. This will re-load the form and display the error messages if there is an error.

Note: you probably need to disable JavaScript in your browser (or disable Client side validation) to check this is working correctly.

Bob
rowby 01 Oct, 2012
HI

Looking good. Can I have both autoserver side and client side running at the same time?

Rowby
GreyHead 01 Oct, 2012
Hi Rowby,

Yes, and you should have both running (though it doesn't always work out like that).

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