Question

enter image description here

Hi, I am very new to SharePoint. I do not have any coding background.

I created a survey as shown in the photo. However, I am trying to hide the two columns:

  • Time Created
  • Number of Responses

Appreciate if I can get guided steps on how to hide the 2 columns.

Was it helpful?

Solution

If you have access to Script Editor or Content Editor webpart then you can try adding below code to your Survey page:

<script type="text/javascript">
    function runAfterEverythingElse(){
        document.querySelector("td[id^='overview03']").parentElement.style.display = "none";
        document.querySelector("td[id^='overview04']").parentElement.style.display = "none";
    }
    _spBodyOnLoadFunctionNames.push("runAfterEverythingElse");
</script>

Check below references to find out how to use the Script Editor webpart in SharePoint.

References:

  1. Script Editor Web Part in SharePoint 2016/2013/Online
  2. How to Use the Script Editor Web Part in SharePoint 2013
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top