Feedback
Anatomy
Usage Guidelines
This component should be used in places to gather feedback on whether certain information is helpful to improve the types and format of information provided.
WordPress
This component is possible to add to sites when the "Feedback Component" feature flag is toggled on. When enabled, the component is appended automatically to FAQ content when placed in an accordion in both the FAQ Search page template and the FAQs gutenberg block.
Form submissions are processed via an AJAX request using WordPress' wp_ajax handler with an action of feedback_submit
. The data is then forwarded to Qualtrics, using credentials saved in Theme Settings under Feature Flags.
Specifications
Properties
Property | Type | Description | Required | Default |
---|---|---|---|---|
id | integer | Post ID of related content to gather feedback on. | Yes | - |
content_type | string | Specific word for the related content. Defaults to 'content'. | No | - |
class | string | list of additional classes to apply to main element. | No | - |
attrs | array | list of additional HMTL attributes to apply to main element. | No | - |
└ item | string | - | - | - |
Changelog
1.26.0 (2021-10-22)
1.18.0
- feedback added
Related
Contains
Other core components embedded within this template.
Examples
Default
{{ include( 'components/feedback.twig', { id: 239 } ) }}