Closed joeyc773 closed 9 months ago
Hi @joeyc773 . I have created a trial column formatting that checks the file name and displays the checked result as an icon.
Here is the code I tried to create.
※I took "File is not a Folder" to mean "If it is a folder, do not check it". My apologies if I misunderstood.
I will close this since there seems to be no reply.
Sorry, for some reason I didn't get notified of this so only just seeing it.
I can confirm this does what I needed and more! Thank you so much for this :)
I have found one unforseen issue. We have links to records sites in the teams folders with this icon
These files lose their title completely when this styling is applied..
We have links to records sites in the teams folders with this icon
I don't know exactly what it is, but it looks to me like the icon that appears when it is shared... I'll look into it after tomorrow.
These files lose their title completely when this styling is applied..
I just tried the code and it shows the file name with no problem.
Is it possible that the code was not copied and pasted properly...?
Hi, all other files work fine, it's specifically the shared folders with that icon.
I've also noticed the Name column now does word wrapping, not a major issue but I know people in my team will ask if it's possible to change.
What Kind of Sample (view or column format)
Column Format
Sample Description (what should it do)
My workplace has a naming convention for files which most people manage to fail to use. I'm trying to find a way to highlight if the naming convention hasn't been followed (this could be red text, a background, or even an icon).
The convention is "YYYYMMDD-[FileName]" e.g. 20230919-Request For Help.
So far I've been able to get it to check that it starts with "20" and at a minimum I'd like to check the following:
Ideally it would also maintain the 'action on click' that would normally be there before adding any formatting (see screenshot).![image](https://github.com/pnp/List-Formatting/assets/6248421/200f830e-cef0-45ca-8def-9304b3bbf8d7)
Are you Willing to Help?
My JSON knowledge is extremely limited, but this is what I've managed so far:![image](https://github.com/pnp/List-Formatting/assets/6248421/b0337c55-14b9-4e0d-bb5a-7226babf7745)