Selection limit - EnumList Hi everyone, I ...

(PBPR PBPR) #1

Selection limit - EnumList

Hi everyone,

I made EnumList with 15 values. It is posibility to limit selection to 4 values?

Thanks & Regards!!

(Dinh Nguyen Nguyen) #2

+Maciej GEO Hi Maciej, you can use the Valid_If constraint of the column to check the number of elements in the list:

COUNT([_THIS]) <= 4

“[_THIS]” refers to the current value in the column, which is the list of selected enum values. The COUNT() expressions calculates the number of elements in the list. If the number of selected enum elements exceeds 4, the column becomes invalid.