Text
PushFeedback provides comprehensive text customization options, allowing you to align the feedback button's textual content with your company's tone or support various languages (i18n). By customizing these properties, you can ensure a consistent user experience that reflects your brand's voice or caters to your diverse user base.
Usage
To customize the textual properties, set the respective attributes on the <feedback-button>
element in your HTML. Here's an example:
<feedback-button
project="YOUR_PROJECT_ID"
email-placeholder="Enter your email"
modal-title="Give us your thoughts">
Button text
</feedback-button>
Properties
The table below lists all the available properties you can override:
Property | Description |
---|---|
error-message | Type: string Default value: Please try again later." Message displayed when there's an error submitting feedback. |
modal-title-error-4-0-3 | Type: string Default value: The request URL does not match the one defined in PushFeedback for this project." Message displayed when there's a 403 error submitting feedback. |
modal-title-error-4-0-4 | Type: string Default value: We could not find the provided project id in PushFeedback. Message displayed when there's a 404 error submitting feedback. |
email-placeholder | Type: string Default value: Email address (optional) Placeholder text for the email input field. |
footer-text | Type: string Default: "" Optional footer text displayed after "Powered by Pushfeedback.com". |
message-placeholder | Type: string Default value: Comments Placeholder for the feedback message input. |
modal-title | Type: string Default value: Share your feedback Title of the feedback modal. |
modal-title-error | Type: string Default value: Oops! Title displayed when there's an error submitting feedback. |
modal-title-success | Type: string Default value: Thanks for your feedback! Title displayed upon successful feedback submission. |
privacy-policy-text | Type: string Default value: I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>. Privacy policy text. |
rating-placeholder | Type: string Default value: Was this page helpful? Heading for the feedback rating feature (thumbs). |
rating-stars-placeholder | Type: string Default value: How would you rate this page Heading for the feedback rating feature (stars). |
screenshot-attached-text | Type: string Default value: Screenshot attached Text displayed when a screenshot is attached to the feedback. |
screenshot-button-text | Type: string Default value: Add a screenshot Text for the button that opens the screenshot capture interface. |
screenshot-taking-text | Type: string Default value: Taking screenshot... Text displayed while capturing a screenshot. |
screenshot-edit-text-button-text | Type: string Default value: Edit text Text for the button that opens the text editing interface for screenshots. |
screenshot-editor-title | Type: string Default value: Edit screenshot Title of the screenshot editor modal. |
screenshot-editor-cancel-text | Type: string Default value: Cancel Text for the cancel button in the screenshot editor. |
screenshot-editor-save-text | Type: string Default value: Save Text for the save button in the screenshot editor. |
screenshot-size-label-text | Type: string Default value: Size: Label text for the screenshot size selector. |
screenshot-border-label-text | Type: string Default value: Border: Label text for the screenshot border options. |
screenshot-edit-text-prompt-text | Type: string Default value: Edit text: Prompt text for the screenshot text editing interface. |
screenshot-error-general | Type: string Default value: Failed to capture screenshot. General error message when screenshot capture fails. |
screenshot-error-permission | Type: string Default value: Permission denied. Please allow screen sharing to take screenshots. Error message when screen sharing permission is denied. |
screenshot-error-not-supported | Type: string Default value: Screen capture is not supported in this browser. Error message when the browser doesn't support screen capture. |
screenshot-error-not-found | Type: string Default value: No screen sources available for capture. Error message when no screen sources are available. |
screenshot-error-cancelled | Type: string Default value: Screenshot capture was cancelled. Error message when user cancels screenshot capture. |
screenshot-error-browser-not-supported | Type: string Default value: Your browser does not support screen capture. Please use a browser like Chrome, Firefox, or Safari on desktop. Error message for unsupported browsers. |
screenshot-error-unexpected | Type: string Default value: An unexpected error occurred. Please try again. Error message for unexpected errors during screenshot capture. |
send-button-text | Type: string Default value: Send Text for the button that submits feedback. |