assets/dist/theme-bundle.chunk.3.js
/**
 * If there are no options from bcapp, a text field will be sent. This will create a select element to hold options after the remote request.
 * @returns {jQuery|HTMLElement}
 */
If there are no options from bcapp, a text field will be sent. This will create a select element to hold options after the remote request.
If there are no options from bcapp a text field will be sent . This will create a select element to hold options after the remote request .
function makeStateRequired(stateElement, context) {
  var attrs = lodash_transform__WEBPACK_IMPORTED_MODULE_4___default()(stateElement.prop('attributes'), function (result, item) {
    var ret = result;
    ret[item.name] = item.value;
    return ret;
  });
  var replacementAttributes = {
    id: attrs.id,
    'data-label': attrs['data-label'],
    class: 'form-select',
    name: attrs.name,
    'data-field-type': attrs['data-field-type']
  };
  stateElement.replaceWith($('<select></select>', replacementAttributes));
  var $newElement = $('[data-field-type="State"]');
  var $hiddenInput = $('[name*="FormFieldIsText"]');
  if ($hiddenInput.length !== 0) {
    $hiddenInput.remove();
  }
  if ($newElement.prev().find('small').length === 0) {
    $newElement.prev().append("<small>" + context.required + "</small>");
  } else {
    $newElement.prev().find('small').show();
  }
  return $newElement;
}
function makeStateRequired ( stateElement , context ) { var attrs = lodash_transform__WEBPACK_IMPORTED_MODULE_4___default ( ) ( stateElement . prop ( 'attributes' ) , function ( result , item ) { var ret = result ; ret [ item . name ] = item . value ; return ret ; } ) ; var replacementAttributes = { id : attrs . id , 'data-label' : attrs [ 'data-label' ] , class : 'form-select' , name : attrs . name , 'data-field-type' : attrs [ 'data-field-type' ] } ; stateElement . replaceWith ( $ ( '<select></select>' , replacementAttributes ) ) ; var $newElement = $ ( '[data-field-type="State"]' ) ; var $hiddenInput = $ ( '[name*="FormFieldIsText"]' ) ; if ( $hiddenInput . length !== 0 ) { $hiddenInput . remove ( ) ; } if ( $newElement . prev ( ) . find ( 'small' ) . length === 0 ) { $newElement . prev ( ) . append ( "<small>" + context . required + "</small>" ) ; } else { $newElement . prev ( ) . find ( 'small' ) . show ( ) ; } return $newElement ; }
If there are no options from bcapp, a text field will be sent.
If there are no options from bcapp a text field will be sent .
// String is injected from localizer