- Posts: 15
- Thank you received: 0
Checkbox custom field
- George
- Topic Author
- Offline
- New Member
-
Less
More
8 years 9 months ago #84674
by George
Checkbox custom field was created by George
Hi all.
Is there a way to limit selected boxes in custom field checkbox to one. At the moment I've got 5 options (boxes) to choose from and they all can be selected, but I need to limit the selection to one option (box) only.
Thanks in advance for any help.
George.
Is there a way to limit selected boxes in custom field checkbox to one. At the moment I've got 5 options (boxes) to choose from and they all can be selected, but I need to limit the selection to one option (box) only.
Thanks in advance for any help.
George.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #84691
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox custom field
Hi George
I haven't checked yet but I think you can use this validation rules posabsolute.github.io/jQuery-Validation-.../#maxcheckboxinteger
Basically, edit the custom field, set Validation Rules to validate[maxCheckbox[1]]
Then it will only allows on option to be selected
However, why don't you use radio instead of checkbox? If you want to allows one option only, then radio will meet your requirement better
Tuan
I haven't checked yet but I think you can use this validation rules posabsolute.github.io/jQuery-Validation-.../#maxcheckboxinteger
Basically, edit the custom field, set Validation Rules to validate[maxCheckbox[1]]
Then it will only allows on option to be selected
However, why don't you use radio instead of checkbox? If you want to allows one option only, then radio will meet your requirement better
Tuan
Please Log in or Create an account to join the conversation.
- George
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
8 years 9 months ago #84711
by George
Replied by George on topic Checkbox custom field
Thanks Tuan,
I'll give it ago and will let you know if it works.
George.
I'll give it ago and will let you know if it works.
George.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #84741
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox custom field
OK George. Update us with the result as soon as you try it
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- George
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
8 years 9 months ago #84778
by George
Replied by George on topic Checkbox custom field
Hi Tuan,
It worked, however I have followed your advice to use radio as it's exactly what I need.
George.
It worked, however I have followed your advice to use radio as it's exactly what I need.
George.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #84822
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Checkbox custom field
Great. Thanks for confirming
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 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.