Skip to content

Widget Attributes

The powCAPTCHA widget can be customized using various attributes that control its behavior and appearance. Below is a list of available attributes and their descriptions.

AttributeDescription
data-app-idYour powCAPTCHA application ID.
data-localeThe 2 digits language locale code (e.g., en, fr, es) to display the widget in a specific language. Default is the user’s browser language.
data-themeThe theme of the widget. You can choose from light, dark, or auto. Default is auto.
data-contextA string that will be sent to the powCAPTCHA server to help identify the context of the widget. This can be useful for analytics or debugging purposes.
data-invisibleIf set to true, the widget will be rendered as an invisible widget. This is useful for scenarios where you want to verify users without displaying the widget. Default is false.
nameThe field name to use when submitting the widget’s response. This is useful if you want to handle the response on the server side. Default is powcaptcha-response.
data-invisible-allow-submitBy default, the widget will not allow form submission until it is validated in invisible mode. If you want to allow form submission without validation, set this attribute to true. Default is false.
data-detect-required-fieldsThe data-detect-required-fields attribute indicates whether the widget should automatically detect required fields in the form. If set to false, the widget will not attempt to detect required fields. It is recommended to maintain this attribute as true to ensure signals collection works correctly. Default is true.
data-backend-urlThe URL of your backend server that will handle the widget’s response. This is useful if you want implement you own backend logic for handling the widget’s response. Default is https://api.powcaptcha.com.
Contribute

What’s on your mind?

Create GitHub Issue

Quickest way to alert our team of a problem.