Skip to content
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "responseReferenceActivity_schema",
"@id": "responsesReferenceActivity_schema",
"prefLabel": "Global Responses Reference Activity",
"description": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses.",
"preamble": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses. After answering the first question, the second question will be determined by referring to your first answer in the global responses object.",
Expand Down
41 changes: 41 additions & 0 deletions activities/selectActivity/items/slider_item_with_max
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "slider_item_with_max",
"prefLabel": "slider item with max value",
"description": "This is a slider item with max value.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a slider item with max value.",
"ui": {
"inputType": "slider"
},
"responseOptions": {
"valueType": "xsd:integer",
"minValue": 0,
"maxValue": 100,
"multipleChoice": false,
"choices": [
{
"name": "Response option 1",
"value": 0
},
{
"name": "Response option 2",
"value": 25
},
{
"name": "Response option 3",
"value": 50
},
{
"name": "Response option 4",
"value": 75
},
{
"name": "Response option 5",
"value": 100
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "slider_item",
"prefLabel": "slider item",
"description": "This is a slider item.",
"@id": "slider_item_without_max",
"prefLabel": "slider item without max",
"description": "This is a slider item without max value.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a slider item.",
"question": "This is an example of a slider item without max value.",
"ui": {
"inputType": "slider"
},
"responseOptions": {
"valueType": "xsd:integer",
"minValue": 0,
"maxValue": 4,
"multipleChoice": false,
"choices": [
{
Expand All @@ -31,13 +29,11 @@
{
"name": "Response option 4",
"value": 3
}
,
},
{
"name": "Response option 5",
"value": 4
}

]
}
}
14 changes: 11 additions & 3 deletions activities/selectActivity/selectActivity_schema
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@
"reproschema:Skipped"
]
},
{"isAbout": "items/slider_item",
"variableName": "slider_item",
{"isAbout": "items/slider_item_with_max",
"variableName": "slider_item_with_max",
"isVis": true,
"allow": [
"reproschema:Skipped"
]
},
{"isAbout": "items/slider_item_without_max",
"variableName": "slider_item_without_max",
"isVis": true,
"allow": [
"reproschema:Skipped"
Expand All @@ -50,7 +57,8 @@
"items/radio_item_multiple_choice",
"items/select_item",
"items/select_item_multiple_choice",
"items/slider_item"
"items/slider_item_with_max",
"items/slider_item_without_max"
],
"shuffle": false,
"allow": [
Expand Down
Loading