title: Receiving "Exception: Invalid conversion for item type: PAGE_BREAK. (line 60, file "Code") error code due to multiple sections with in the form."
body: <p>Below is my current code and it updates my form based on the spreadsheet columns with the appropriate &quot;id&quot; question but fails once it reaches a page break in the form. I will have multiple forms this will work through to ensure all dropdowns have the same options. For example a new customer is added to the list and needs to be added to different forms. However at this point I can't get it to work through the page breaks.</p>
  <p>Hope someone can point me down the right path.</p>
  <pre><code>var wsData = SpreadsheetApp.openById(ssID).getSheetByName(&quot;FormQuestionEntries&quot;);
  var form = FormApp.openById(NJEformID)
  
  
  function main(){
    var labels = wsData.getRange(1,1,1,wsData.getLastColumn()).getValues()[0];
    labels.forEach(function(label,i){
      var options = wsData
                          .getRange(2,i+1,wsData.getLastRow()-1,1)
                          .getValues()
                          .map(function(o){return o[0]})
                          .filter(function(o){return o !==&quot;&quot;});
      updateDropDownUsingTitle(label,options);
    });
  }
  
  function updateDropDownUsingTitle(title,values) {
   var items = form.getItems();
   var titles = items.map(function(item){
     return item.getTitle();
   });
    var pos = titles.indexOf(title);
    if(pos !== -1){
      var item = items[pos];
      var itemID = item.getId();
      updateDropdown(itemID,values);  
    }              
  }
  
  function updateDropdown(id,values) {
    var item = form.getItemById(id);
    item.asListItem().setChoiceValues(values);
    
   }
  </code></pre>