Field Color

Randal Flinn 311 Reputation points
2021-03-17T20:24:01.873+00:00

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?

78900-field-color.jpg

Thanks

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
    2021-03-18T10:44:44.097+00:00

    @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.
    79194-1.png
    3.Edit page -> Edit source -> Add codes which are put in the attachment-code.txt.
    Note: You should replace "ms-vb-lastCell.ms-cellstyle.ms-vb2.ms-vb-lastCell" with ID found in previous step.
    79135-2.png
    4.Result
    79127-3.png


    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