From 1df3dd8269d9b16d2849e6bc2c87b61c47b1017c Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 2 Dec 2021 22:44:08 +0100 Subject: [PATCH 1/2] add text area item --- activities/Activity3/Activity3_schema | 9 ++++++++- activities/Activity3/items/textarea_item | 17 +++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 activities/Activity3/items/textarea_item diff --git a/activities/Activity3/Activity3_schema b/activities/Activity3/Activity3_schema index 309bfc0..96bcba6 100644 --- a/activities/Activity3/Activity3_schema +++ b/activities/Activity3/Activity3_schema @@ -23,13 +23,20 @@ "reproschema:Skipped" ] }, - {"isAbout": "items/text_item", + {"isAbout": "items/text_item", "variableName": "text_item", "isVis": true, "allow": [ "reproschema:Skipped" ] }, + {"isAbout": "items/textarea_item", + "variableName": "textarea_item", + "isVis": true, + "allow": [ + "reproschema:Skipped" + ] + }, {"isAbout": "items/participant_id_item", "variableName": "participant_id_item", "isVis": true, diff --git a/activities/Activity3/items/textarea_item b/activities/Activity3/items/textarea_item new file mode 100644 index 0000000..97997d9 --- /dev/null +++ b/activities/Activity3/items/textarea_item @@ -0,0 +1,17 @@ +{ + "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic", + "@type": "reproschema:Field", + "@id": "textarea_item", + "prefLabel": "text area item", + "description": "This is a text area item.", + "schemaVersion": "1.0.0-rc2", + "version": "0.0.1", + "question": "This is an item where the user can input large amounts of text.", + "ui": { + "inputType": "textarea" + }, + "responseOptions": { + "valueType": "xsd:string", + "maxLength": 300 + } +} \ No newline at end of file From 7ec2bb87324833a3833f3943bbd09dc4f7652d61 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 2 Dec 2021 22:48:02 +0100 Subject: [PATCH 2/2] add textarea item to ui order --- activities/Activity3/Activity3_schema | 1 + 1 file changed, 1 insertion(+) diff --git a/activities/Activity3/Activity3_schema b/activities/Activity3/Activity3_schema index 96bcba6..f811b4a 100644 --- a/activities/Activity3/Activity3_schema +++ b/activities/Activity3/Activity3_schema @@ -63,6 +63,7 @@ "items/integer_item", "items/float_item", "items/text_item", + "items/textarea_item", "items/multitext_item", "items/participant_id_item", "items/email_item"