kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

Text fields don't appear in View mode if the field is empty #1104

Closed pbowen-oc closed 6 years ago

pbowen-oc commented 6 years ago

Steps:

  1. Open a form in read-only mode or review-only mode.

Expected: All text, number, and date input areas are displayed.

Actual: Any text, number, or date items that don't have values are not being displayed. The labels are being displayed, but not the input areas. If any of these items have values, the input areas is being displayed.

2018-08-20 14_17_37-openclinica 2018-08-20 14_18_06-openclinica XForm - text fields not showing in view mode.xml.txt

MartijnR commented 6 years ago

Thanks.

This will require making a distinction between a regular "note" in any view and a question without a value that was forced to read-only in a special read-only view.

MartijnR commented 6 years ago

Alternatively, the readonly module, could not set the .empty class for .readonly-forced questions. That may be cleaner.

MartijnR commented 6 years ago