States API js not working for anonymous user

Created on 23 June 2023, over 1 year ago

Problem/Motivation

Added #states property for custom entity form fields. The states are working fine when we check in admin user. But it is not working for anonymous user, tried #states property in form_alter, also with conditional fields module. Didn't work. But working fine in webform which is also using FAPI states. Drupal 9. Also checked same in Node entity, same issue occurs

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Javascript

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024