Hidding table columns with CSS selector

I am looking to show/hide columns with CSS via a field value of a seperate view on a single screen.

Reasoning: I have many users that need to view and hide columns of a large grid at different times of the day. It is an attendance application. I understand different views could be the answer but hiding/showing columns would be much cleaner for the end user.

My Success: I am able to inline edit a Yes/No on view one and hide a list field value on view 2 with CSS based on the value of Yes/No one view one.

My Failure: I am unable to find the CSS selector and code to hide/show columns. I have found interesting ideas but can not find the selector/path to address the column and show/hide the column.

Anyone have any suggestions or examples that can help or lead me in the right direction?

FS

Have you looked into using KTL’s _hc Hide Column keyword?

Dean

Here is the link for hide Column:

And for using a condition:

Here is the syntax for hiding columns based on another views field.

_hc=[colHeader1, colHeader2], [ktlCond, is, 50, field_123, view_xyz]

Craig

1 Like

Hi @Frank - after having a brief email conversation with @CSWinnall this morning, I thought I’d follow up on his post and how this would actually look. Hopefully this will bring this to life for you and anyone else interested in exploring the amazing world of KTL

Cortex R&D Inc. - YouTube channel
Configurator
Keyword List
My YouTube Channel

Carl Holmes - Jun 17, 2024 - Forum

3 Likes

Thanks Carl

This video is great. Very clear and easy to follow.

Craig

@CarlHolmes,

Wow!! That’s a great video, Carl. A perfect example of how the KTL works. Thanks!

Norm
KTL’s Dad

1 Like

Thanks @NormandDefayette_CortexRD - also I appreciate you pointing out the below verbal typo :wink:

When you say: “…if condition is Ex Student, hide the field_80 in view_441”
Actually it should be: “…if the value in field_80 of view_441 is Ex Student, hide column Update”

1 Like

Thank you Carl and to all others that showed an interest in my post. Within the last few days I have crawled into the KTL rabbit hole and love it here. The video and other suggestions were awesome and save me valuable time in my project. I greatly appreciate the help!

Cheers

3 Likes