tablemaker
tablemaker copied to clipboard
Ability to restrict the column type field options
What are you trying to do?
Would it be possible to restrict what options available in the field type drop-down? I currently have no need for Checkbox, Colour, and Lightswitch, and the presence of these is causing confusion. It would be nice if I could optionally hide these.
What's your proposed solution?
When setting up the field, to have a checkbox list of the different options, which I can uncheck to hide from the entry form view
Additional context
No response
Great idea - not currently possible, but certainly adding to the list to add as a field setting.
Thanks for the quick response 👍
@LauraMontgomery Facing same issue. For now I've installed https://github.com/doublesecretagency/craft-cpcss/blob/v3/README.md plugin and added the following:
input.table-maker-field + * .select-cell option { display: none; }
input.table-maker-field + * .select-cell option[value="singleline"] { display: block; }
@kevadamson good to know! That'll probably be enough for what I need, at least for the time-being. Thanks!