silverstripe-admin
silverstripe-admin copied to clipboard
Formschema Component React Readonly Checkbox Field
At current the React component takes and displays the literal (database) value (1
or 0
) in a read-only text <input/>
, which is not very user friendly.
This differs from the older form style returned by PHP where the value is the human friendly "Yes" or "No" (at least, in my default locale).
React component:
PHP returned form:
(note these screenshots are from parallel dev environments, so the values are different - NOT that 0 == 'Yes'
)
I've confirmed the issue.