- Posts: 11
- Thank you received: 0
Checkbox Validation
- Keith
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago - 3 years 6 months ago #138269
by Keith
Checkbox Validation was created by Keith
I have created a checkbox field with four options. I would like to not only make it required, but I would like to enforce two (and only two) selections must be made.
Thanks
Thanks
Last edit: 3 years 6 months ago by Keith.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #138270
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox Validation
Hi Keith
The extension uses jquery validation engine, so you can use the validator/rules supported by this library
In your case, you can use this rule posabsolute.github.io/jQuery-Validation-.../#mincheckboxinteger
So just edit the field, set Validation rules to validate[required,minCheckbox[2]] and it will work as expected
Regards,
Tuan
The extension uses jquery validation engine, so you can use the validator/rules supported by this library
In your case, you can use this rule posabsolute.github.io/jQuery-Validation-.../#mincheckboxinteger
So just edit the field, set Validation rules to validate[required,minCheckbox[2]] and it will work as expected
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Keith
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
3 years 6 months ago #138271
by Keith
Replied by Keith on topic Checkbox Validation
Thanks for the quick response!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #138272
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox Validation
You're welcome
Please Log in or Create an account to join the conversation.
- Keith
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
3 years 6 months ago #138275
by Keith
Replied by Keith on topic Checkbox Validation
Sorry, one more related question. Same field. I have four dates as options. Each date has a maximum of 10 registrants. I thought I could use the Quantity Values field to list the max registrants. That doesn't seem to work.
Please Log in or Create an account to join the conversation.
- Keith
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
3 years 6 months ago #138276
by Keith
Replied by Keith on topic Checkbox Validation
I apologize. It does work. Just can't use 0 to test. It likely means unlimited
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #138277
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox Validation
Exactly what does not work? Please note that you should not login using a super admin account to try to register because we do not prevent quantity limit for super admin
Try to logout and login using a Registered account and try to register for the event to see if it works well
Tuan
Try to logout and login using a Registered account and try to register for the event to see if it works well
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.