title: create an ItemResponse in Form
body: <p>I'm trying to send an automatic response from code to a form of mine.  I can open it and send empty responses (I create a FormResponse and submit it empty).</p>
  
  <p>Now I want to fill the itemResponses prior to submit.  I'm trying to use</p>
  
  <pre><code>FormResponse.withItemResponse(itemResponse)
  </code></pre>
  
  <p><a href="https://developers.google.com/apps-script/reference/forms/form-response?hl=es-ES#withItemResponse(ItemResponse)" rel="nofollow">https://developers.google.com/apps-script/reference/forms/form-response?hl=es-ES#withItemResponse(ItemResponse)</a>
  but I can't find a way to create the ItemResponse argument to fill my FormResponse.
  I searched the whole documentation, I know there must be a way, but I simply can't find it.</p>
  
  <pre><code>var form = FormApp.getActiveForm();
  var response = form.createResponse();
  var itemResponse = ????????????;
  response.withItemResponse(itemResponse);
  response.submit();
  </code></pre>
  
  <p>Any hint?  Thank you!</p>