Checkbox custom field

  • George
  • Topic Author
  • Offline
  • New Member
  • New Member
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.

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • George
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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.

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • George
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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.

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.