سؤال

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.

هل كانت مفيدة؟

المحلول

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
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top