Feedback form (polls)

A basic example of a poll form with a question and a simple Yes/No answer. The response is stored as a tag attached to the current user. You can also modify the code to use events instead and store more data (like the current page the user is on, the question text, username, etc.).

Example

A simple poll functionality implemented using UXWizz to store the results

You can test in this JSFiddle (note that this fiddle does not actually send data to UXWizz).

HTML:

Add this before the end of the </body> tag.

JavaScript:

Add this in a <script> tag or include it as an external JavaScript file somewhere after the tracker is included.

CSS:

Include this in a <style> tag or as an external CSS file.

JavaScript one-liner

Alternatively, you can combine the HTML, CSS and JS in a single JS snippet and include it:

Last updated

Was this helpful?