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.