For the complete documentation index, see llms.txt
Saltar al contenido principal

Text

Set labels, placeholders, and messages for the feedback form.

Usage​

Set text attributes on <feedback-button> or <feedback-modal> in your HTML. For example:

<feedback-button
project="YOUR_PROJECT_ID"
email-placeholder="Enter your email"
modal-title="Give us your thoughts">
Button text
</feedback-button>

Properties​

Text attributes and default values:

PropertyDescription
error-messageType: string
Default value: Please try again later.
Message displayed when there's an error submitting feedback.

error-message-4-0-1Type: string
Default value: This project requires a valid API key to submit feedback. Check the api-key attribute.
Message displayed when a submission is rejected because the project requires an api-key and none was provided, or the provided key is invalid.

error-message-4-0-3Type: 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.

error-message-4-0-4Type: string
Default value: We could not find the provided project id in PushFeedback.
Message displayed when there's a 404 error submitting feedback.

close-button-labelType: string
Default value: Close feedback form
Available on <feedback-modal> directly. Accessible name for the modal close button, announced by screen readers. Not shown visually.

email-placeholderType: string
Default value: Email address (optional)
Placeholder text for the email input field.

footer-textType: string
Default: ""

Optional text displayed in the form footer. Supports a limited set of HTML tags (a, b, br, code, em, i, p, small, span, strong, u) and attributes (href, target, rel, title).
message-placeholderType: string
Default value: Share your thoughts...
Placeholder for the feedback message input.

modal-titleType: string
Default value: Share your feedback
Title of the feedback modal.

modal-title-errorType: string
Default value: Oops!
Title displayed when there's an error submitting feedback.

modal-title-successType: string
Default value: Thanks for your feedback!
Title displayed upon successful feedback submission.

privacy-policy-textType: 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. Supports a limited set of HTML tags (a, b, br, code, em, i, p, small, span, strong, u) and attributes (href, target, rel, title).
rating-negative-labelType: string
Default value: No
Available on <feedback-modal> directly. Accessible name and tooltip for the negative rating button (thumbs mode).

rating-placeholderType: string
Default value: Was this page helpful?
Heading for the feedback rating feature (thumbs).

rating-positive-labelType: string
Default value: Yes
Available on <feedback-modal> directly. Accessible name and tooltip for the positive rating button (thumbs mode).

rating-star-labelType: string
Default value: Rate {rating} out of 5
Available on <feedback-modal> directly. Accessible name for each star button (stars mode). The {rating} placeholder is replaced with the star number.

rating-stars-placeholderType: string
Default value: How would you rate this page?
Heading for the feedback rating feature (stars).

screenshot-attached-textType: string
Default value: Screenshot attached
Text displayed when a screenshot is attached to the feedback.

screenshot-button-textType: string
Default value: Add a screenshot
Text for the button that opens the screenshot capture interface.

screenshot-taking-textType: string
Default value: Taking screenshot...
Text displayed while capturing a screenshot.

screenshot-positioning-textType: string
Default value: Scroll to the area you want to capture.
Instruction in the capture bar shown before taking a screenshot from an embedded form.

screenshot-positioning-capture-textType: string
Default value: Capture this view
Label for the capture bar's confirmation button.

screenshot-positioning-cancel-textType: string
Default value: Cancel
Label for the capture bar's cancel button.

screenshot-edit-text-button-textType: string
Default value: Edit text
Text for the button that opens the text editing interface for screenshots.

screenshot-editor-titleType: string
Default value: Edit screenshot
Title of the screenshot editor modal.

screenshot-editor-cancel-textType: string
Default value: Cancel
Text for the cancel button in the screenshot editor.

screenshot-editor-save-textType: string
Default value: Save
Text for the save button in the screenshot editor.

screenshot-size-label-textType: string
Default value: Size:
Label text for the screenshot size selector.

screenshot-border-label-textType: string
Default value: Border:
Label text for the screenshot border options.

screenshot-edit-text-prompt-textType: string
Default value: Edit text:
Prompt text for the screenshot text editing interface.

screenshot-error-generalType: string
Default value: Failed to capture screenshot.
General error message when screenshot capture fails.

screenshot-error-permissionType: string
Default value: Permission denied. Please allow screen sharing to take screenshots.
Error message when screen sharing permission is denied.

screenshot-error-not-supportedType: string
Default value: Screen capture is not supported in this browser.
Error message when the browser doesn't support screen capture.

screenshot-error-not-foundType: string
Default value: No screen sources available for capture.
Error message when no screen sources are available.

screenshot-error-cancelledType: string
Default value: Screenshot capture was cancelled.
Error message when user cancels screenshot capture.

screenshot-error-browser-not-supportedType: 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-unexpectedType: string
Default value: An unexpected error occurred. Please try again.
Error message for unexpected errors during screenshot capture.

send-button-textType: string
Default value: Send
Text for the button that submits feedback.

success-messageType: string
Default value: ""
Custom message displayed in the modal body after feedback is successfully submitted. When empty, no extra message appears below the success title.

Example​

Translate the button and form actions:

<feedback-button project="YOUR_PROJECT_ID" modal-title="Danos tu opinión" send-button-text="Enviar">
Sugerencias
</feedback-button>

Replace YOUR_PROJECT_ID with the ID from Snippet. Use the properties above to translate the remaining labels and error messages.