Skip to content

[4.x]: Conditional fields' visibility not getting updated when in preview mode #11432

@thupsi

Description

@thupsi

What happened?

Description

When in preview mode, changing a field that controls the visibility of another field, does not have the expected result of toggling the second field's visibility.

Steps to reproduce

  1. Add a field condition. Let's say have a text field that should be visible when a lightswitch field is activated.
  2. Open an entry with those fields and enter preview mode.
  3. Toggle the lightswitch field

Expected behavior

The text field should be visible

Actual behavior

The text field remains hidden (It becomes visible though when the user exits preview mode)

Craft CMS version

Craft Pro 4.0.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions