I am trying to validate multiselect input: the idea is to select at least one item. required: true is set, however it doesn’t have any effect. At the end of multiselect page, there is a Details section which states:
To validate a multiselect field you should define a custom validation logic. You can’t use a standard validation as it works ONLY with string values and the item operates with arrays.
So far, so good, however, it seems to be triggered only in case when user selects at least one item in multiselect control.
required - (boolean) adds the * after the label marking the input as mandatory. Also, setting the attribute to true automatically assignes the ‘NotEmpty’ validation rule to the input
Anyway, I tried to put validate: “NotEmpty” as you suggested:
finally I got it. the problem occured for compiled version, because both form and grid have validation module with the same names, but isNotEmpty a bit different in a form. in a compiled version it was overwritten by grid’s logic.
for now please use the following fix (add once on init stage after dhtmlx.js loaded):