code: function(fieldData) {
      const { type, values, name } = fieldData
      let fieldValues
      const optionActions = [m('a', mi18n.get('addOption'), { className: 'add add-opt' })]
      const fieldOptions = [m('label', mi18n.get('selectOptions'), { className: 'false-label' })]
      const isMultiple = fieldData.multiple || type === 'checkbox-group'
      const optionDataTemplate = label => {
        const optionData = {
          label,
          value: hyphenCase(label),
        }
  
        if (type !== 'autocomplete') {
          optionData.selected = false
        }
  
        return optionData
      }
  
      if (!values || !values.length) {
        let defaultOptCount = [1, 2, 3]
        if (['checkbox-group', 'checkbox'].includes(type)) {
          defaultOptCount = [1]
        }
        fieldValues = defaultOptCount.map(index => optionDataTemplate(`${mi18n.get('optionCount', index)}`))
  
        const firstOption = fieldValues[0]
        if (firstOption.hasOwnProperty('selected') && type !== 'radio-group') {
          firstOption.selected = true
        }
      } else {
        // ensure option data is has all required keys
        fieldValues = values.map(option => Object.assign({}, { selected: false }, option))
      }
  
      const optionActionsWrap = m('div', optionActions, { className: 'option-actions' })
      const options = m('ol', fieldValues.map(option => selectFieldOptions(name, option, isMultiple)), {
        className: 'sortable-options',
      })
      const optionsWrap = m('div', [options, optionActionsWrap], { className: 'sortable-options-wrap' })
  
      fieldOptions.push(optionsWrap)
  
      return m('div', fieldOptions, { className: 'form-group field-options' }).outerHTML
    }
docs: Add data for field with options [select, checkbox-group, radio-group]
  
  @param  {Object} fieldData
  @return {String} field options markup