You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make "Field Options" input required for type "Selectbox" #182
For settings with the "Selectbox" type, the "Field Options" field must be required, otherwise an empty list is displayed for the user.
And if you set only value of the field, then the logic of the list itself is lost.
And in the clientconfig.options_default lexicon set Yes==1||No==0.
As a result, we have an example for the Selectbox for the user, which is convenient and the field is now required.
However, for non-Selectbox, the options parameter is not empty.
@Mark-H What do you think, should I do PR or are these corrections not particularly useful? Or is there another solution?
Activity
Ruslan-Aleev commentedon May 21, 2020
This can be solved in a crooked way, replace the
name: 'options'block in the grid (https://github.com/modmore/ClientConfig/blob/master/assets/components/clientconfig/js/mgr/widgets/window.settings.js#L93) with:And in the
clientconfig.options_defaultlexicon setYes==1||No==0.As a result, we have an example for the Selectbox for the user, which is convenient and the field is now required.
However, for non-Selectbox, the options parameter is not empty.
@Mark-H What do you think, should I do PR or are these corrections not particularly useful? Or is there another solution?