JSON formatting of SharePoint Online Form

Mark Tinsley 21 Reputation points
2021-08-26T06:43:02.06+00:00

Looking to alter the Font color for the Placeholder text in a SharePoint forms.

<div class="ReactFieldEditor-placeHolder">Enter value here</div>

I would like the place holder text to be #c2c2c2.

.ReactFieldEditor .ReactFieldEditor-placeHolder {
color: #c2c2c2;
font-size: 14px;
font-weight: 400;
}

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2021-08-27T01:28:25.587+00:00

    Hi @Mark Tinsley ,
    We can add the style, given below to Content Editor Web Part to achieve the place holder text to be #c2c2c2.

     <style>    
     .ReactFieldEditor-placeHolder {    
     color: #c2c2c2;  
    font-size: 14px;  
    font-weight: 400;  
     }    
     </style>    
    

    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

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.