Bug in Episerver Forms v.4.28

Found in

EPiServer.Forms 4.28.0

Fixed in

EPiServer.Forms 4.29.1


Apr 24, 2020


Jan 21, 2021


ViewMode rendering


Closed, Fixed and tested


Steps to Reproduce

1. Create a new Form.
2. Add a element textbox.
3. Add submit button
4. Go to viewmode and inspect submit button.
5. Check value of class attribute

Expected: value is "Form__Element FormExcludeDataRebind FormSubmitButton"
Actual: Empty.

Steps to Reproduce

In the SubmitButtonElementBlock.ascx (modules_protected\EPiServer.Forms\EPiServer.Forms\Views\ElementBlocks), we set the class attribute two places in the tag. First with the result of GetValidationCssClasses and then after with if/else check for the image. These have to be combined to one class attribute.