code: def __get_default_value_from_element(self, element):
          
  
          if element.name == "select":
              options = element.find_all("option")
              is_multiple = element.has_attr("multiple")
  
              selected_options = [
                  option for option in options
                  if option.has_attr("selected")
              ]
  
              if not selected_options and options:
                  selected_options = [options[0]]
  
              selected_values = []
  
              if is_multiple:
                  for option in selected_options:
                      value = option["value"] if option.has_attr("value") else option.string
                      selected_values.append(value)
  
                  return selected_values
              elif len(selected_options) >= 1:
                  if selected_options[0].has_attr("value"):
                      return selected_options[0]["value"]
                  else:
                      return selected_options[0].string
  
              return ""
  
          if element.name == "textarea":
              return element.string if element.string is not None else ""
  
          if element.name == "input" and element.has_attr("type"):
              if element["type"] in ("checkbox", "radio"):
                  if not element.has_attr("checked"):
                      return False
  
                  if element.has_attr("value"):
                      return element["value"]
                  else:
                      return "on"
  
          if element.has_attr("value"):
              return element["value"]
  
          return ""
docs: Get the default value of a form element
  
          Args:
              elements (obj): The soup element.
  
          Returns:
              str: The default value