silverstripe-admin icon indicating copy to clipboard operation
silverstripe-admin copied to clipboard

Formschema Component React Readonly Checkbox Field

Open NightJar opened this issue 6 years ago • 1 comments

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: image

PHP returned form: image

(note these screenshots are from parallel dev environments, so the values are different - NOT that 0 == 'Yes')

NightJar avatar May 08 '18 00:05 NightJar

I've confirmed the issue.

maxime-rainville avatar Jul 02 '18 00:07 maxime-rainville