1

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.

1
  • Which version of SharePoint you are using? Do you have access to Script Editor or Content Editor webpart on your site/survey page? – Ganesh Sanap Sep 13 '20 at 9:07
0

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
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.