def determine_choice(field_data, field_choices)
      result = nil
      key_name = field_data.keys.first
      unless key_name.nil?
        choice = find_named_entry(field_choices, key_name)
        result = choice[:type] unless choice.nil?
      end
      return result
    end
def determine_choice(field_data, field_choices)
      result = nil
      key_name = field_data.keys.first
      unless key_name.nil?
        choice = find_named_entry(field_choices, key_name)
        result = choice[:type] unless choice.nil?
      end
      return result
    end
Finds the choice option matching data provided.