Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293238

#states not supported for elements in formatter settings being displayed on Views field handler form

$
0
0

If I have a formatter settings element that uses #states, the form element names that I set there that are standardized in field UI, are different from the form elements that are output when displayed in a Views field handler form. See #1387832-3: Support #states from Field API formatter settings forms:

fieldname
field_contact_phone
field html id
edit-fields-field-contact-phone-settings-edit-form-settings-click-to-edit
field html name
fields[field_contact_phone][settings_edit_form][settings][click_to_edit]
views html id
edit-options-settings-click-to-edit
views html name
options[settings][click_to_edit]

This leads to a bit of a WTF for anyone with a field formatter that uses #states because now site builders cannot see the formatter settings they should be filling in.


Viewing all articles
Browse latest Browse all 293238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>