Form elements not rendered properly in view mode

Found in

EPiServer.Forms 4.25.1

Fixed in

EPiServer.Forms 4.28.0

Created

Aug 19, 2019

Updated

Apr 03, 2020

Area

ViewMode rendering

State

Closed, Fixed


Description

Steps to reproduce

1. Add a selection element named "Country" then enter several countries (Sweden, Vietnam).
2. Add the second selection element named "Sweden" then enter some data.
3.Go to the Dependencies tab of the second selection element, add a condition:
Field = country, Operator = Equals, Value = Sweden.
4. Loop through steps 2 and 3 for the "Vietnam" option.
5. Save and publish everything.
6. Go to View mode.

Expect:
All dependency elements should be invisible.

Actual:
Selection elements appear for 1 second and are then hidden.