Bug in Episerver Forms v.4.28

Found in

EPiServer.Forms 4.28.0

Fixed in

EPiServer.Forms 4.29.1

Created

Apr 24, 2020

Updated

Jul 01, 2020

Area

ViewMode rendering

State

Closed, Fixed and tested


Description

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.