States API js not working for anonymous user

Created on 23 June 2023, about 1 year ago
Updated 31 August 2023, 10 months 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

Closed: works as designed

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.69.0 2024