You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a display condition to a field layout element that depends on a CKEditor field results in an error message:
The field seemingly provides condition rules for element queries, not for plain text fields. When the field is selected, the only two options are has a value and is empty:
Instead of the usual options you get when selecting a plain text field:
On the entry form, the condition rule treats the $value as an element query or collection, that's causing an error.
Steps to reproduce
Create a CKEditor field and any other field and add them both to an entry type's field layout.
Add an entry condition to the second field that depends on the CKEditor field.
Open the entry edit form.
Additional info
Craft version: 5.2.5
PHP version: 8.3
CKEditor version: 4.1.0
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting! I raised PRs to address this.
At this point, the CKEditor field only supports the EmptyFieldConditionRule (“has a value”, “is empty”). Please post a new discussion if you think it should be extended beyond that.
@i-just Thanks! The condition rules for empty/non-empty fields are sufficient for me, the other substring options rarely make sense for CKEditor fields.
Description
Adding a display condition to a field layout element that depends on a CKEditor field results in an error message:
The field seemingly provides condition rules for element queries, not for plain text fields. When the field is selected, the only two options are has a value and is empty:
Instead of the usual options you get when selecting a plain text field:
On the entry form, the condition rule treats the
$value
as an element query or collection, that's causing an error.Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: