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
[5.x]: Fields renamed to the same label/handle on different entry types show incorrect conditional options for other fields on the same entryType
#14787
Closed
brionwolf opened this issue
Apr 10, 2024
· 3 comments
Renaming 2 separate fields on 2 separate entryTypes to the same Label and Handle will cause the conditionals menu to often reference the incorrect field or the first field made by that name.
Steps to reproduce
Create two different fields with different options for use with conditionals (ie: 2 dropdown fields, one with options: red and blue, the second with options: green and orange)
Add or edit 2 entry types with new or existing fields.
Add one field from step 1 to the first entry type, and rename the field's label, and handle.
Add the second field from step 1 to the second entry type, and rename it to the same label, and handle from step 3.
Open the settings menu for a 3rd field, and attempt to add a conditional based on the state of one of the fields from step 1.
Expected behavior
The available rules for the field should relate to the fields on the entry type I am editing.
Actual behavior
The available rules possibly relate to a field of the same label/handle, but added to a different entry type.
Workaround
Use unique labels/handles for similar fields on different entry types.
Screenshot
Craft CMS version
Craft Pro 5.0.3
PHP version
8.3.4
Operating system and version
MacOS Sonoma 14.4.1 (23E224)
Database type and version
MySQL 8.3.0
Image driver and version
GD 8.3.4
Installed plugins and versions
CKEditor 4.0.3
The text was updated successfully, but these errors were encountered:
Just got this fixed for Craft 5.1. Going forward, element conditions will only include custom fields present in the current field layout, so there won’t be any ambiguity over which “Featured Type” field you should be selecting.
The available custom fields will always reflect the currently-selected fields in the layout—even newly-selected fields which haven’t been saved to it yet.
What happened?
Description
Steps to reproduce
Expected behavior
Actual behavior
Workaround
Screenshot
Craft CMS version
Craft Pro 5.0.3
PHP version
8.3.4
Operating system and version
MacOS Sonoma 14.4.1 (23E224)
Database type and version
MySQL 8.3.0
Image driver and version
GD 8.3.4
Installed plugins and versions
The text was updated successfully, but these errors were encountered: