BACE Survey Route
The Survey Route is a direct BACE implementation on a website created by the app without a third-party survey platform.
The URL for this route is <your-URL>/survey
.
The route uses the BACE application defined in /app/bace/user_config.py
and /app/bace/user_convert.py
.
It further uses /app/bace/user_survey.py
to specify parameters of this specific route.
An example implemented by the BACE package template can be viewed at https://r3ue9e2bf3.execute-api.us-east-2.amazonaws.com/Prod/survey.
Parameters in /app/bace/user_survey.py
There are two parameters that are defined directly.
# Number of BACE questions
nquestions = 15
# Whether the last page will display the estimates or just a thank-you message
display_estimates = True
nquestions
provides the route with the number of questions to display.
At the end of the questions, the estimates are calculated.
If display_estimates
is True
, these estimates will be shown on the last page.
Otherwise, a simple Thank-You page will be shown.
Advanced customization
To change the HTML templates, find them in /app/templates
.
We highly recommend reviewing how to work with Flask.