Variable values do not match the user's responses
Closed this issue · 11 comments
Preconditions
User is logged in on website:
test-user1@com.us / qwerty
There is the activity with the configured exportable report.
The radio, checkbox, slider, text, age, and date variable are added to the markdown field in the report.
Steps to reproduce
- Complete the activity on mobile app by selecting any responses on the radio, checkbox, slider, text, age, and date screens.
- Download the admin report on the user's DataViz.
- Pay attention to the variable values in the report.
Actual result
No age value in the report after completing activity on website
Expected result
Age value is displayed in the report after completing activity on website
Reproduces for: radio, checkbox, slider, text, age, and date
Environment:
https://admin-staging.mindlogger.org/
https://admin.mindlogger.org/
Win 10 / Chrome 103
staging account:
user-stg@ml.com / 123456
config reports v9 / test D
Applet password: Qwe123!!!
@astef021 date shows the actually selected month - 1
Environment:
https://admin-staging.mindlogger.org/
Win 10 / Chrome 103
user-stg@ml.com / 123456
config reports v9 / test D
Applet password: Qwe123!!!
Verified as fixed:
Environment:
https://admin-staging.mindlogger.org/
Win 10 / Chrome 103
user-stg@ml.com / 123456
config reports v9 / test D
Applet password: Qwe123!!!
The issue is reproduced in the printed items (radio, checkbox, slider, text) for variable values of radio button, checkbox, slider, age, date):
Environment:
https://admin-staging.mindlogger.org/
Win 10 / Chrome 103
user-stg@ml.com / 123456
config reports v9 / test D
https://admin.mindlogger.org/
Win 10 / Chrome 103
my applet 2 / regular activity 2
Applet password: Qwe123!!!
@karser verified as fixed in the report: age variable representation is fixed, and all the variable values(radio, checkbox, slider, text, date, age) are rendered in the printed questions (prompts and options) as expected.
In the email body variable value won't be supported if activity name contains a character other than space or underscore.
For item names we have restrictions: it is possible to set an item name by using letters, numbers, and underscores only.
For activity names there are no such restrictions and symbols are common in use.
Video: https://www.screencast.com/t/9yVfIBfGR
I don't remember such a requirement for email body (to support variable values), but I think we could create a new ticket for this issue and clarify if we need to fix it now and what's the priority.
The email body should support variables, so ticket is reopened.
@natalia-muzyka Should be fixed
Verified as fixed:
Environment:
https://admin-staging.mindlogger.org/
Win 10 / Chrome 103
user-stg@ml.com / 123456
config reports v9 / test D