Forums

Multiplier fields not validated

htavares 08 Jan, 2016
I am starting to use the Multiplier containers, and all works as expected except for the validations!

As an example, I tested with the supplied Demos, and after editing the "demo-fields-multiplier" form, and making the text field required, when testing the form, the validation is ignored in the repeated fields! (I'm using the supplied validation, not a custom one).

Also, is there a tutorial on how to set up the way to save into the database (and upload files, and update a notification email) with this newly created multiplier fields?

Thanks in advance!
htavares 17 Jan, 2016
I haven't got a definite answer for this, but I have to say that the automatic validation does work (more or less) when pressing the submit button, although the date picker is not shown and when creating new multiplier fields, these inherit any error message that was present in the original.

A solution for this would be to rebind the validation to the newly created fields after creating them.

I am not going to do this for now because I have made my own multiplier code, and for now I'm happy.

Anyway, great tool, chronoforms is the best!
GreyHead 17 Jan, 2016
Hi htavares,

I experimented for a client recently using the jQuery validation plug-in on a complex form. It has the advantage over the CF validation library that there are more 'hooks' where you can add or remove validations (and more ways to add custom validations). It seems to work OK with CFv5, I've not tested it with the Multiplier - though I have on a form that show/hides fieldsets.

Bob
htavares 18 Jan, 2016
Nice one Bob, thanks for the suggestion!

One thing that I really like in the currect validator, is that it ignores hidden fields, and when clicking the submit button and if you have tabs, it jumps to the tab with the first required field.

Does the jQuery Validation do that as well?
GreyHead 18 Jan, 2016
Hi htavares,

Yes it ignores hidden inputs - not sure about tabs.

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