tablemaker icon indicating copy to clipboard operation
tablemaker copied to clipboard

Ability to restrict the column type field options

Open LauraMontgomery opened this issue 9 months ago • 4 comments

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.

Image

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

LauraMontgomery avatar Feb 04 '25 12:02 LauraMontgomery

Great idea - not currently possible, but certainly adding to the list to add as a field setting.

engram-design avatar Feb 05 '25 03:02 engram-design

Thanks for the quick response 👍

LauraMontgomery avatar Feb 05 '25 08:02 LauraMontgomery

@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 avatar Apr 01 '25 13:04 kevadamson

@kevadamson good to know! That'll probably be enough for what I need, at least for the time-being. Thanks!

LauraMontgomery avatar Apr 01 '25 15:04 LauraMontgomery