Sharepoint colour code for particular fields

2021-01-25T14:57:49.023+00:00

Hi ,

I want to differentiate particular heading coloumns in List with different colours. So it would be easy to fill the List.

Thankyou.

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office Office Online Server
Microsoft 365 and Office SharePoint For business Windows
Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. Amos Wu-MSFT 4,051 Reputation points
    2021-01-26T03:22:37.88+00:00

    Hi @Dhamodaran, Shahini (HM Health Solutions Inc) ,
    if you are using the classic experience list view, you could CSR to change the column header background color.
    Demo code:60390-code.txt
    60389-carbon.png
    Test result:
    60427-image.png
    For the modern view, as far as I know, the JSON formatting only supports hideColumnHeader.
    custom-header-format.json
    There is a UserVoice about this, you can vote it, if a UserVoice is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.