This article describes how to enable or disable the "Feedback collection" widget in tenant settings for each tenant.
By following this article, you can manage feedback collection visibility.
Functional requirements
- The default behaviour is to show "learner feedback collection" widget.
- Introduce a setting to disable "feedback collection" widget for learner in tenant settings (
platform.ui.feedback
). - Future settings may separately manage feedback widgets for learners and administrators (instructors, administrators, authors, i.e. separate widgets for learner and administrator portals).
- If this setting is "false", the widget is not shown for learner portal (or administrator portal if introduced)
Non-functional requirements
- Administrator can disable the feedback widget in the tenant setting.
- If the setting is "false", the widget is hidden.
- If the setting is absent or set to "true" or any other value, the widget is shown.
Implementation
The setting value is a JSON with the following structure:{
"learner": {
"visible": boolean
} }
If the setting doesn't exist, is not a well-formed json, 'learner' element doesn't exist, 'visible' attribute doesn't exist, its value is not bool or is true then the widget is visible
Only in the opposite case the widget is hidden.