Field Color

Randal Flinn 311 Reputation points

I have a list form as shown (that I created in InfoPath). I am currently using a Rule to change the color depending on field content. Because the color does not remain, i assume this is lost when the field or form are not the "focus". Is there a way to conditionally format this field based on content and have the color remain?



SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,294 questions
{count} votes

Accepted answer
  1. Emily Du-MSFT 43,996 Reputation points Microsoft Vendor

    @Randal Flinn

    Based on your description, I understand that you want to set SharePoint list column background color according to column contents.

    Here’re steps:

    1.Edit page -> Add a content editor web part.
    2.Press F12, find column ID.
    3.Edit page -> Edit source -> Add codes which are put in the attachment-code.txt.
    Note: You should replace "" with ID found in previous step.

    If an Answer 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 comments No comments

0 additional answers

Sort by: Most helpful