Buy Now
Sign in

Validation on Multipler options

ltempest , November 09 2018
ltempest 60
November 09 2018 #381414
I have a multiplier set of fields on my form, I have set these fields to required but when the form is completed and these multiplier fields are not filled in the validation does not work and the form is still submitted. How do I use the JS Client side validation to check these fields? I've tried adding the list of multiplier fields:
But again this does not work.
healyhatman 5.6
November 09 2018 #381417
Setting them to "required" should be enough on the client side, although you can't use the square brackets in the ***ID*** of the field (the "name" is fine). For example - working on the form I just threw together on my own site, multiplier and all. If JS validation isn't working, check your console for errors.
In the backend though I don't think the standard "validate fields" action is going to cut it, you're going to want to use a PHP block to loop through $this->data("products") and for each $row, check empty($row["product"]) , empty($row["quantity"]) etc.
Web developer at
I don't work for ChronoEngine but I do accept donations

You can now copy+paste code from forums