Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Issue #62 - Populating flag for whether or not slider bar was touched (
Browse files Browse the repository at this point in the history
…#63)

* Survey should now be including info on whether or not slider was touched

* Should be final version

* Including flag for whether or not slider was touched or rating is valid

Co-authored-by: Aviral Somani <[email protected]>
  • Loading branch information
a-vzn and Aviral Somani authored Aug 2, 2020
1 parent a9fe848 commit 68bcaef
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"Layers": [],
"Timeout": "25",
"Code": {
"S3Bucket": "amplify-cleanviewweb-dev-143211-deployment",
"S3Bucket": "amplify-cleanviewweb-develop-162445-deployment",
"S3Key": "amplify-builds/AccountSettingsLambda-4e6f34627a48316b3471-build.zip"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"Layers": [],
"Timeout": "25",
"Code": {
"S3Bucket": "amplify-cleanviewweb-dev-143211-deployment",
"S3Key": "amplify-builds/CreateSurveyLambda-4c586c584e5a76684f7a-build.zip"
"S3Bucket": "amplify-cleanviewweb-develop-162445-deployment",
"S3Key": "amplify-builds/CreateSurveyLambda-626a4e59466c312b7754-build.zip"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion amplify/backend/function/CreateSurveyLambda/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ app.get("/survey/:id", function (req, res) {
<div>
<p>How satisfied are you with ${name}'s overall COVID-19 response?</p>
<label>Poor</label>
<input type='range' id='slider' name='responseRating' min='0' max='5' step='.5'>
<input type='hidden' id='ratingValid' name='ratingValid' value='0' ></input>
<input type='range' id='slider' name='responseRating' min='0' max='5' oninput='document.getElementById(\"ratingValid\").value = 1' step='.5'></input>
<label>Excellent</label>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"Layers": [],
"Timeout": "25",
"Code": {
"S3Bucket": "amplify-cleanviewweb-dev-143211-deployment",
"S3Bucket": "amplify-cleanviewweb-develop-162445-deployment",
"S3Key": "amplify-builds/GetSurveyResponses-37485a30526372383251-build.zip"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"Layers": [],
"Timeout": "25",
"Code": {
"S3Bucket": "amplify-cleanviewweb-dev-143211-deployment",
"S3Key": "amplify-builds/ManageLocationLambda-4c36646c4d654a413039-build.zip"
"S3Bucket": "amplify-cleanviewweb-develop-162445-deployment",
"S3Key": "amplify-builds/ManageLocationLambda-42412f37633759534c48-build.zip"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"Layers": [],
"Timeout": "25",
"Code": {
"S3Bucket": "amplify-cleanviewweb-dev-143211-deployment",
"S3Key": "amplify-builds/SubmitResponseLambda-48654f6452345a63426c-build.zip"
"S3Bucket": "amplify-cleanviewweb-develop-162445-deployment",
"S3Key": "amplify-builds/SubmitResponseLambda-7a434b35306f66363676-build.zip"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion amplify/team-provider-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"SubmitResponseLambda": {},
"ManageLocationLambda": {},
"CreateSurveyLambda": {},
"GetSurveyResponses": {}
"GetSurveyResponses": {},
"AccountSettingsLambda": {}
}
}
}
Expand Down

0 comments on commit 68bcaef

Please sign in to comment.