Share point Content Editor is not applying to all items

Cody Dobbs 21 Reputation points
2020-06-02T21:52:05.23+00:00

Hello,

I am new to share point, and the only knowledge I have with the app is you tube and searching for troubleshooting my issues. I have created a script within the the content editors, and the functionality I am wanting is happening, but only to the first page of my list (the first 30 items). how can I get this content editor script to apply on all items, along with any future items to be added. any help on this would be greatly appreciated.

Below is the script that I have written into the source of of my content editor (in case the issue lies within):

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js" type="text/javascript"></script><script>

$(document).ready(function(){

$Text = $("td .ms-vb2:contains('Completed')").filter(function() {

return $(this).text() == "Completed";})

$Text.parent().css("background-color", "#00FF66");

$Text = $("td .ms-vb2:contains('Received')");

$Text.parent().css("background-color", "#FFFF66");

$Text = $("td .ms-vb2:contains('In Progress')");

$Text.parent().css("background-color", "#3388EE");

$Text = $("td .ms-vb2:contains('Canceled')");

$Text.parent().css("background-color", "#FF0000");

}); </script>​​​​<br/>​<br/>​​<br/>​<br/>​<br/>​<br/>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js" type="text/javascript"></script>

<script>

$(document).ready(function(){

$Text = $("td .ms-vb2:contains('Completed')").filter(function() {

return $(this).text() == "Completed";})

$Text.parent().css("background-color", "#00FF66");

$Text = $("td .ms-vb2:contains('Received')");

$Text.parent().css("background-color", "#FFFF66");

$Text = $("td .ms-vb2:contains('In Progress')");

$Text.parent().css("background-color", "#3388EE");

$Text = $("td .ms-vb2:contains('Canceled')");

$Text.parent().css("background-color", "#FF0000");

}); </script>​​​​<br/>​<br/>​​<br/>​<br/>​<br/>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js" type="text/javascript"></script>

<script>

$(document).ready(function(){

$Text = $("td .ms-vb2:contains('Completed')").filter(function() {

return $(this).text() == "Completed";})

$Text.parent().css("background-color", "#00FF66");

$Text = $("td .ms-vb2:contains('Received')");

$Text.parent().css("background-color", "#FFFF66");

$Text = $("td .ms-vb2:contains('In Progress')");

$Text.parent().css("background-color", "#3388EE");

$Text = $("td .ms-vb2:contains('Canceled')");

$Text.parent().css("background-color", "#FF0000");

}); </script>​​​​<br/>​<br/>​​<br/>​<br/>​<br/> ​<br/>

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,458 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.2K Reputation points MVP
    2020-06-02T22:19:49.767+00:00

    Sharepoint is not currently supported here on QnA. I'd try asking for help in dedicated forums here.

    https://techcommunity.microsoft.com/t5/sharepoint/ct-p/SharePoint

    https://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

0 additional answers

Sort by: Most helpful