Support Center >
Website Poll >
Using a unique identifier to prevent vote flooding
Using a unique identifier to prevent vote flooding
You can pass a unique value to the poll to uniquely identify each user who is voting and prevent them from voting multiple times. For example, if you have a registration process on your website where each user has their own username, you can pass the username to the poll to enforce one vote per unique username. If our system detects that someone with that identifier has already voted, the vote will not be counted and a message will be shown to the user.
You can pass the unique identifier to the poll by specifying &identifier=VALUE at the end of the poll URL in your poll HTML code. Replace VALUE with your own unique identifier for each user.
The Unique External Identifier option must be enabled in the Poll Settings section of your Website Toolbox account to use this feature. If the Unique External Identifier option is enabled, an identifier must be passed to the poll or an error will be displayed.
Note: All symbols within the unique identifier must be properly encoded. For example, spaces must be replaced by %20. More information...
The unique identifier can be up to 250 characters long and can contain any combination of letters, numbers, or symbols.
If you are using the full poll HTML code (over 25 lines of code), you will need to add the following code within the <form> tag:
<input type="hidden" name="identifier" value="VALUE">
Replace VALUE with your own unique identifier for each user. You will also need to insert the identifier value in the ShowResults javascript function.
|
If you still need assistance, please contact customer support.
|
|
|