question

MarkTinsley-6493 avatar image
0 Votes"
MarkTinsley-6493 asked RaytheonXie-MSFT edited

JSON formatting of SharePoint Online Form

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;
}

office-sharepoint-onlinesharepoint-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you sure this is a SharePoint question? If you are doing this in a program using a language such as C# then this probably should be tagged with that language at least.

0 Votes 0 ·

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT edited

Hi @MarkTinsley-6493 ,
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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.