How to reproduce
* create a new field (in my case options field for user profile)
* Go to instance settings at admin/structure/profiles/manage/main/fields/field_foo

Without FCS:
* can edit default value

With FCS:
* default value form element disappeared

Comments

geek-merlin’s picture

Title: Default value disappears » Form widget disappears for string options field

Huh, form widget also disappears. Only an empty div is rendered in the browser.

Johnny Clear-the-cache does not help.

geek-merlin’s picture

This only happens for radios, not for dropdown. Very strange.
Hunted this a bit down and field_conditional_state_element_process() does not return anything suspicious.

geek-merlin’s picture

Title: Form widget disappears for string options field » Form radios widget disappears for string options field
seaneffel’s picture

Checkbox and radio button widgets do not display, site wide, with this module enabled. Affects all components: taxonomy fields, text fields, etc. Could it be as simple as accidental CSS overrides?

Tobias Xy’s picture

No they don't disappear because of CSS.
The reason is actually the same as here: #2200361: Incompatible with #type => text_format (ie. long text fields with formatting)
FCS sets an #process callback in hook_field_widget_form_alter and because of this the default #process callback defined in hook_element_info isn't executed (Core bug: #1779496: don't let #process set on form elements prevent hook_element_info() #process handlers from being set)

But I'll change the way FCS works at the weekend, so this issue should be fixed in the next days "automatically", as soon as #2203067: Rewrite of state handling using a whitelist of supported widgets is fixed.

Tobias Xy’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.