protected function areaAsHtml($objField, $hideEmpty = false, $intDynamicCount = 0)
    {
        $strReturn = "";
        $strSet = "";
        
        // If this area was rendered invisible due to conditions,
        // don't show it on the valuesAsHtml overview either.
        $blnShouldDisplay = $this->elementShouldDisplay($objField);

        if ($objField->hasContent($intDynamicCount) && $blnShouldDisplay) {
            foreach ($objField->getFields() as $objSubField) {
                if (get_class($objSubField) !== "ValidFormBuilder\\Paragraph") {
                    switch (get_class($objSubField)) {
                        case "ValidFormBuilder\\MultiField":
                            $strSet .= $this->multiFieldAsHtml($objSubField, $hideEmpty, $intDynamicCount);

                            break;
                        default:
                            $strSet .= $this->fieldAsHtml($objSubField, $hideEmpty, $intDynamicCount);

                            // Support nested dynamic fields.
                            if ($objSubField->isDynamic()) {
                                $intDynamicCount = $objSubField->getDynamicCount();
                                for ($intCount = 1; $intCount <= $intDynamicCount; $intCount ++) {
                                    $strSet .= $this->fieldAsHtml($objSubField, $hideEmpty, $intCount);
                                }
                            }
                    }
                }
            }
        }

        $strLabel = $objField->getShortLabel();
        if (!empty($strSet)) {
            if (!empty($strLabel)) {
                $strReturn = "<tr>";
                $strReturn .= "<td colspan=\"3\" style=\"white-space:nowrap\" class=\"vf__area_header\">";
                $strReturn .= "<h3>{$strLabel}</h3>";
                $strReturn .= "</td>\n";
                $strReturn .= "</tr>";
            }

            $strReturn .= $strSet;
        } else {
            if (!empty($this->__novaluesmessage) && $objField->isActive()) {
                $strReturn = "<tr>";
                $strReturn .= "<td colspan=\"3\" style=\"white-space:nowrap\" class=\"vf__area_header\">";
                $strReturn .= "<h3>{$strLabel}</h3>";
                $strReturn .= "</td>\n";
                $strReturn .= "</tr>";

                return $strReturn . "<tr><td colspan=\"3\">{$this->__novaluesmessage}</td></tr>";
            } else {
                return "";
            }
        }

        return $strReturn;
    }