This module provides a feedback widget for users to rate pages, provide comments, and offer suggestions. It includes features like simple yes/no ratings, reason selection, free-form text input, optional demographic data, and live statistics. The module also offers an administrative dashboard for viewing and managing submissions, with role-based access control and UI-based translations for English and Arabic.
DGA Feedback adds an accessible "Was this page useful?" widget to any page of your Drupal site. Visitors answer Yes or No, select the reasons that apply, add a short comment, and optionally provide their gender. Editors get a dashboard with statistics, filters, and bulk actions. The design follows the Saudi Digital Government Authority (DGA) Design System.
What is new in 2.2
- New design: the widget and the admin dashboard follow the iDigit Gov components. Styles are scoped to the module and use
--dga-*design tokens with built-in fallbacks. - Five languages: English, Arabic (right-to-left), French, Spanish and Chinese (Simplified), managed in one translation form — no
.pofiles. - Reasons editor: one row per reason, one cell per language, with add, remove, and drag to reorder.
- Submit row: an information sentence and up to two links beside the Submit button.
- Gender stays optional, with Prefer not to say preselected by default; the default is configurable.
- No repeat submissions: a submitted answer is remembered in the browser, so the widget stays on its confirmation.
- Fixes for dashboard icon paths on Composer installs, the translations form, and theme CSS overriding the
hiddenattribute. Drupal.org CI runs coding standards, static analysis, and the test suite on Drupal 10 and 11.
Features
- Yes/No question with multi-select reasons for each answer, an optional comment field, and an optional gender question.
- Live statistics: percentage of "Yes" answers and total count.
- Three states: closed (question and buttons), open (reasons, comment, gender, inline validation) and submitted (confirmation).
- Accessible by design: native keyboard operation, ARIA groups and live error messages, visible focus, forced-colors and reduced-motion support.
- Responsive layout, and a mirrored right-to-left layout for Arabic.
- Admin dashboard: statistics cards, filters, a sortable submissions table, edit, delete, and bulk delete.
- Configurable rate limiting, refresh delay, and length and count limits.
- Three permissions: view the dashboard, manage submissions, administer settings.
- No external dependencies.
Requirements
- Drupal 10, 11 or 12 (
^10 || ^11 || ^12) and PHP 8.1 or higher. - Verified on Drupal 10.6 and Drupal 11.4 (42 automated tests each).
Installation
composer require drupal/dga_feedback drush en dga_feedback drush cr
When updating from an earlier release, run drush updb and drush cr. The update adds the new settings without overwriting values you configured.
Usage
- Go to Structure > Block layout and place the DGA Feedback Widget block where it should appear. Use the block's visibility settings to limit it to certain content types, paths, roles, or languages.
- Open Content > Feedback Dashboard to see submissions and statistics.
- Use Settings for rate limiting, delays, and the default gender selection, and Translations for every text and the Yes/No reasons.
Who can do what
- Submit feedback: anyone who can view the page (
access content), including anonymous visitors. To show the widget to some roles only, use the block's Roles visibility condition. - View the dashboard:
view dga feedback dashboard. Edit or delete submissions:manage dga feedback submissions. Change settings and translations:administer dga feedback settings.
Security and privacy
- Submissions are protected by a rate limit and text is sanitized before it is stored.
- The visitor's IP address is stored for abuse prevention.
- Uninstalling the module drops the feedback table and permanently deletes all submissions. Export first if you need the data.
Related
- DGA Rating the companion 1–5 star rating widget.
- iDigit Gov Feedback the iDigit Gov distribution's own feedback and rating module.
Ask your assistant about DGA Feedback
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.2.1 | Stable | 10–11 | PHP >=8.1 | Nov 12, 2026 | |
| 2.2.0 | Stable | 10–11 | PHP >=8.1 | Nov 12, 2026 | |
| 2.2.x-dev | Dev | 10–11 | PHP >=8.1 | Nov 12, 2026 | |
| 2.1.0 | Stable | 10–11 | Jun 16, 2026 | ||
| 2.0.1 | Stable | 10–11 | May 21, 2026 | ||
| 2.0.0 | Stable | 10–11 | Nov 13, 2025 | ||
| 2.0.x-dev | Dev | 10–11 | Nov 13, 2025 | ||
| 1.0.2 | Stable | 10–11 | Nov 6, 2025 | ||
| 1.0.1 | Stable | 10–11 | Nov 5, 2025 | ||
| 1.0.0 | Stable | 10–11 | Nov 4, 2025 |