code: public function Field($properties = array ())
      {
          if ($this->isGrouped()) {
              $this->transformToInput();
          } else {
              $this->transformToButton();
          }
  
          return parent::Field($properties);
      }
docs: Render the field with the correct attributes
  @param array $properties
  @return  FormAction