edina / fieldtrip-cps

A cat protection fieldtrip app
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

can we make a text area read only #17

Closed benismobile closed 7 years ago

benismobile commented 7 years ago

the current form design is providing the user with introductory text using text area. it would be good if we could make these fields read only so the keyboard does not pop up when user touches area.

benismobile commented 7 years ago

causing unit test fail 1 failing

1) surveyConvertor#fieldToJSON checkforTextareaConversion:

  AssertionError: expected { Object (id, label, ...) } to deeply equal { Object (id, label, ...) }
  + expected - actual

     "label": "This is a label"
     "persistent": false
     "properties": {
       "placeholder": ""
  -    "readOnly": false
     }
     "required": false
     "type": "textarea"
   }