Skip to content

Commit

Permalink
updated demo protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
satra committed Aug 31, 2024
1 parent 3e83e2d commit c24d190
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "conditionalRefereeActivity_schema",
"prefLabel": "Single Radio Button Activity",
"description": "Contains a single radio button item.",
"preamble": "Respond to this activity so that the conditional referer activity has a non-null value to reference.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
{"isAbout": "../../Activity3/items/text_item",
"variableName": "text_item",
"isVis": true,
"allow": [
"reproschema:Skipped"
]
},
{"isAbout": "../../selectActivity/items/radio_item",
"variableName": "radio_item",
"isVis": true
}
],
"order": [
"../../Activity3/items/text_item",
"../../selectActivity/items/radio_item"
],
"shuffle": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "siblingReferenceActivity_schema",
"@id": "conditionalRefererActivity_schema",
"prefLabel": "Sibling Reference Activity",
"description": "Demoes conditional visibility by referring to the global responses variable that stores all responses.",
"description": "Demos conditional visibility by referring to the global responses variable that stores all responses.",
"preamble": "If you selected Response option 1 in the first question, you should see an email question. Otherwise, you should see a text entry question. If you see both or neither, something is broken.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
{"isAbout": "../../Activity3/items/email_item",
"variableName": "email_item",
"isVis": "[0].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])",
"isVis": "[0].includes(referee.radio_item)",
"allow": [
"reproschema:Skipped"
]
},
{"isAbout": "../../Activity3/items/text_item",
"variableName": "text_item",
"isVis": "[1, 2].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])",
"isVis": "[1, 2].includes(referee.radio_item)",
"allow": [
"reproschema:Skipped"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "siblingReferenceActivity_schema",
"@id": "responseReferenceActivity_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.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
Expand Down

0 comments on commit c24d190

Please sign in to comment.