include checkboxes created in a custom code box in validation

stikki 31 Jan, 2017
Hi

Is it possible to include controls created in a custom code box in the validation that occurs when submit is pressed?

If not, what would be the best way to validate those controls to make sure they are not empty?

Thanks for your help

Mikki
GreyHead 31 Jan, 2017
Answer
Hi Mikki,

You can add the ChronoForms validation classes in your custom code.
class="validate['group:99'] A"
In this case the group value 99 needs to be the same for all the checkboxes in the group.

Bob

PS ChronoForms supports the dynamic creation of checkbox options so you may not need to use Custom Code.
stikki 05 Feb, 2017
1 Likes
Bob

That works really well!

Thanks

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

VPS & Email Hosting 20% discount
hostinger