Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Invalid Html markup for empty field in form

Found in

EPiServer.Forms 4.5.0

Fixed in

EPiServer.Forms 4.7.0

(Or a related package)

Created

May 09, 2017

Updated

Sep 15, 2017

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Create a new form.
  2. Set the Form Title and Form Description to empty.
  3. On Views, the form is still rendered as below (it's invalid with a W3 validator):

<h2 class="Form__Title"></h2>
<aside class="Form__Description"></aside>

Expected
Do not render html content if property is empty.

Actual
html content is rendered even though the property is empty.