title: Javascript - Sweetalert - Adding values to Select List
body: <p>I am using SweetAlert2, and have a Select List.  My challenge is that the values in the select list are added programmatically. While my code runs, the dropdown has the right NUMBER of values, the text says [object Object] rather than what I added.  What am I doing wrong?    Code is below.</p>
  
  <pre><code>     var outputStr = [];     
  
        for (var i = 0; i &lt; data.rows.length; i++) {
  
       // If here, we have data, so show the information....    
         var vREGISTRY_ID                = data.rows[i].REGISTRY_ID               ? data.rows[i].REGISTRY_ID                  : '-';
         var vNN_NAME                    = data.rows[i].NN_NAME                   ? data.rows[i].NN_NAME                      : '-';
         var vACCOUNT_NAME               = data.rows[i].ACCOUNT_NAME              ? data.rows[i].ACCOUNT_NAME                 : '-';
         var vSITE_DUNS_9DIG             = data.rows[i].SITE_DUNS_9DIG            ? data.rows[i].SITE_DUNS_9DIG               : '-';           
         var vPRIMARY_CITY               = data.rows[i].PRIMARY_CITY              ? data.rows[i].PRIMARY_CITY                 : '-';
         var vPRIMARY_STATE_PROVINCE     = data.rows[i].PRIMARY_STATE_PROVINCE    ? data.rows[i].PRIMARY_STATE_PROVINCE       : '-';
  
           outputStr.push({
               value:vREGISTRY_ID,
               label: vACCOUNT_NAME
           }) ;
  
  
        }; // end of FOR loop
  
         swal({
         title: 'Select Account Name or Division',
         input: 'select',
         inputOptions:  outputStr ,
         inputPlaceholder: 'Select from dropdown',
         showCancelButton: true,
         inputValidator: function(value) {
         return new Promise(function(resolve, reject) {
          if (value === 'abc') {
         resolve();
         } else {
          reject('You need to select abc :)');
         }
       });
       }
      }).then(function(result) {
      swal({
      type: 'success',
         html: 'You selected: ' + result
      });
    }) 
  </code></pre>