nblgeoweb VIP
Total posts: 178
23 Май 2017 15:30

I'm using Cobalt 8.740.

I have a multi-level select field that allows a maximum of 10 options. When I select 10 options, I get an error message saying "Select no more than 10 options". If I select 9 options, it works. It looks like there is an error somewhere in validating the number of selections vs the max parameter.

Последние изменения: 25 Май 2017


Giorgi625 VIP
Total posts: 655
23 Май 2017 16:37

what if you set 11 as limit in field options?


nblgeoweb VIP
Total posts: 178
23 Май 2017 18:07

Then it will only allow 10. It always allows 1 less than maximum.


nblgeoweb VIP
Total posts: 178
24 Май 2017 18:42

I did more experimenting with different numbers and it's always the same - 1 less than the maximum is actually allowed. It drives the users nuts since the message posted by Cobalt says the maximum is 10 but they can only enter 9. It looks like a simple < vs <= type check somewhere but haven't been able to track it down.


Giorgi625 VIP
Total posts: 655
25 Май 2017 10:11

I will check if I have same problem on my test build and let you know.

I will need this feature in upcoming project so it is interesting case.


Sergey
Total posts: 13,748
25 Май 2017 11:01

I tested it. And I could add all elevents and after that Add button disapeared.

Работает на Cobalt