src/config.js
function (suppliedConfig, urlParams) {
    $.each(suppliedConfig.customer_fields, function (key) {
      if (!urlParams['customer.' + key]) return
      suppliedConfig.customer_fields[key].prefilled = urlParams['customer.' + key];
    });
    return suppliedConfig
  }
function (suppliedConfig, urlParams) {
    $.each(suppliedConfig.customer_fields, function (key) {
      if (!urlParams['customer.' + key]) return
      suppliedConfig.customer_fields[key].prefilled = urlParams['customer.' + key];
    });
    return suppliedConfig
  }
function ( suppliedConfig , urlParams ) { $ . each ( suppliedConfig . customer_fields , function ( key ) { if ( ! urlParams [ 'customer.' + key ] ) return suppliedConfig . customer_fields [ key ] . prefilled = urlParams [ 'customer.' + key ] ; } ) ; return suppliedConfig }
Prefill customer fields based on URL query string
Prefill customer fields based on URL query string