0

After Microsoft stopped allowing HTML to render in calculated columns, I applied the below script to my web part page. However, it doesn't work if I page over in the view (ie. I go from 1-30, 31-60). What could be causing this issue and how can I fix it?

<script type="text/javascript">
   $(document).ready(function(){
   var text = $(".ms-vb2:contains('<div')";
      text.each(function() {
      var html = $(this).html();
      $(this).html(html);
      });
  });
</script>
2
  • Are you using classic experience list view page to add this custom JavaScript? Commented Nov 13, 2024 at 2:39
  • Yes. I have the view on a web part page. I'm then using a content editor web part to link to the .js file. Commented Nov 13, 2024 at 12:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.