Color Input Type
A color input form field is useful when respondents are asked to specify a color. They can enter a color in RGB, HSL, and HEX formats or select it with a visual interface. This demo shows how to add a color input question to a survey in your React, Vue, Knockout, jQuery, or Angular application.
To create a color input form field, configure a regular text entry question first: define an object with the type
property set to "text"
and add it to the elements
array. Within this object, specify the question's title
and a unique name
that identifies the question. To transform the text entry form field into a color input question, set the inputType
property to "color"
.