10 years ago
Topic
I have a check-box with 5 choices. I want to limit the choices by maximum 2. Same goes for select-box.
I see no way SEBLOD is able to do that, or I am missing something.
I have looked into validation etc. But since there are only few tool-tips in the so-many-options it's driving a car blindfolded.
SEBLOD becomes more a Rechearch - without any Development, lol.
Did not find topics, no video's, no instructions what-so-ever...
I hope someone can help me out here.
Get a Book for SEBLOD
178 Posts
Jeka
10 years ago
0
Level 1
Hi. As i know seblod does not have validation plugin as you need. By you can do it pretty easily.http://www.jquerybyexample.net/2013/04/jquery-to-limit-number-of-checkboxes-user-can-select.htmlYou can use stuff section of your field to insert code or use custom template.
10 years ago
0
Level 1
I solved it without the code from the page you mentioned... I am not sure if it has to do with a plugin I thought would do the trick: Checkbox (Octopoos) - installed it anyway. And I really was not aware of the place to make the validation. To tell you the thruth - put validation in the form makes sence! lol.

So here's what I did:
  1. Forms & Content Types - click on your Content type
  2. in Admin Form (views) - click on the field (in this case it is a check-box type), it will highlight in yellow
  3. On the right side of screen, click on button nr. 3
  4. In the highlighted field click on 'optional', will be visible once you clicked button 3...
  5. From the modal (window) that open you have two main topics: 'Required' and 'Validation'
  6. In the topic 'Validation' click on the select-box labeled : validation, and choose 'check-box'.
  7. From there you can choose min/max etc.
Hope this helps others. I would make snap-shots but do not have time right now...
178 Posts
Jeka
10 years ago
0
Level 1
Hi.
You choose the right solution to this problem. I have not seen this plugin on the store. sorry for confusing
Get a VIP membership