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

Comments

java008 created an issue. See original summary.

viniciusosouza’s picture

Issue tags: -JavaScript +JavaScript

Can you provide an example of your custom code that you're trying to run?

java008’s picture

Status: Active » Closed (works as designed)
Issue tags: -JavaScript +JavaScript

It works fine. The problem was with the local machine config mismatch.So closing the issue.

quietone’s picture