Form fields display in non-master language regardless of dependencies

Fixed in

EPiServer.Forms 4.25.1

Created

Jun 28, 2019

Updated

Aug 19, 2019

State

Closed, Fixed and tested


Description

A customer has found that, when working with content that is not the master language, if they have fields whose visibility depends on another field, they are always visible.

Steps to reproduce

1. Create a new Alloy Demo project.
2. Install EPiServerForms.
3. Create a form with a field dependency and add it to page (in the master language).
Observe: Fields are working correctly, and the dependent field is shown/hidden as expected.
4. Create a new language version of same page and form.
5. Add the form to recently-created pages.
Observe: Dependent fields are always shown regardless of settings.
Observe: in GetFormInitScript DependenciesInfo : [] is set to empty array regardless of settings