Skip to content

Commit

Permalink
95 add conditional form validations (#97)
Browse files Browse the repository at this point in the history
* feat: update configs for pd percep

* feat: finished pd perceps config

* feat: update metadata

* fix: updated scripts with latest

* fix: fixed key names

* fix: update go version

* feat: change wording and remove question
  • Loading branch information
nicoalee authored Oct 5, 2023
1 parent c0aa2e5 commit d198223
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions populate-scripts/update-db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29621,7 +29621,7 @@ UPDATE tasks SET
}
},
"textContent": {
"en": "My Parkinson''s disease is currently being treated by a...",
"en": "My Parkinson''s disease is currently being treated by a... (Please select all that apply)",
"fr": ""
},
"validation": {
Expand Down Expand Up @@ -30176,7 +30176,7 @@ UPDATE tasks SET
},
{
"questionType": "multipleChoiceSelect",
"key": "9-attribute-thinking-changes-to",
"key": "9-most-attribute-thinking-changes-to",
"validation": {
"required": true
},
Expand All @@ -30187,7 +30187,7 @@ UPDATE tasks SET
}
},
"textContent": {
"en": "What do you attribute your thinking changes to?",
"en": "What do you most attribute your thinking changes to? Please select all that apply.",
"fr": ""
},
"actions": {
Expand Down Expand Up @@ -30248,28 +30248,6 @@ UPDATE tasks SET
}
]
},
{
"questionType": "multipleChoiceSelect",
"key": "9a-most-attribute-thinking-changes-to",
"validation": {
"required": true
},
"condition": {
"dependsOnKey": "9-attribute-thinking-changes-to",
"doAction": {
"onlyHideWhenEmpty": true,
"hideWhenValuesSelected": [ "not-sure", "prefer-not-to-answer" ],
"populateResultsBasedOnSelectedValues": true
}
},
"textContent": {
"en": "What do you MOST attribute your thinking changes to?",
"fr": ""
},
"indent": 1,
"allowMultipleSelections": false,
"options": []
},
{
"questionType": "multipleChoiceSelect",
"key": "10-thinking-symptoms-prescribed-medications",
Expand Down Expand Up @@ -32713,7 +32691,7 @@ UPDATE tasks SET
"questionType": "multipleChoiceSelect",
"key": "36-i-view-thinking-and-mood-symptoms-i-experience",
"textContent": {
"en": "Since my time of PD diagnosis, I view the thinking and mood symptoms that I experience as: (please choose all that apply)",
"en": "Since my time of PD diagnosis, I view the thinking and mood symptoms that I experience as: (please select all that apply)",
"fr": ""
},
"condition": {
Expand Down Expand Up @@ -32861,7 +32839,7 @@ UPDATE tasks SET
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
},
"textContent": {
"en": "<b>What</b> is the value to you of discussing your cognitive and mood symptoms with your medical team? Please choose all that apply:",
"en": "<b>What</b> is the value to you of discussing your cognitive and mood symptoms with your medical team? Please select all that apply:",
"fr": ""
},
"allowMultipleSelections": true,
Expand Down

0 comments on commit d198223

Please sign in to comment.