title: I'm trying to use this function (which I found on a website) to link google form questions with a spread sheet but i keep getting error in line 4
body: <p>I'm trying to  use this function (which I found on a website) to link google form questions with a spread sheet but I keep getting error in line 4
  Error   Attempted to execute myFunction, but could not save.</p>
  <pre><code>    function getDataFromGoogleSheets () {
        const ss = SpreadsheetApp.openById('1xYldb3csabrznjvapWPlIPAkEVQAyKlLQGzl810mG3Y');
        const sheet = ss.getSheetByName(&quot;clinic&quot;);
        const [header, ...data] = sheet.getDataRange().getDisplayValues();
        const choices = {};
        header.forEach(function(title, index) {
          choices[title] = data.map((row) =&gt; row[index]).filter((e) =&gt; e!==&quot;&quot;);
        });
        return choices;  
      }
  
      function populateGoogleForms() {
        const GOOGLE_FORM_ID = '1jg4vooSWG4BY7z_9tMQV5aVaTOGeauC3ad3vsfvhGgk';
        const googleForm = FormApp.openById(GOOGLE_FORM_ID);
        const items = googleForm.getItems();
        const choices = getDataFromGoogleSheets;//&lt;======== Missing () in function call
        items.forEach(function(item){
          const itemTitle = item.getTitle();
          if(itemTitle in choices){
            const itemType = item.getType();
            switch (itemType) {
              case FormApp.ItemType.CHECKBOX:
                item.asCheckboxItem().setChoiceValues(choices[itemTitle]);
                break;
              case FormApp.ItemType.LIST:
                item.asListItem().setChoiceValues(choices[itemTitle]);
                break;
              case FormApp.ItemType.MULTIPLE_CHOICE:
                item.asMultipleChoiceItem().setChoiceValues(choices[itemTitle]);
                break;
              default:
                Logger.log('ignore question',itemTitle)
            }
          }
        });
        ss.toast('Google Form Updated !!');
      }
  
  
   
  </code></pre>