Feature, Question
Am using ReactJS with surveyjs, I want to use an input element for a percentage value (%). I wonder if there is a way of doing this:
Thank you.
@AWIXOR Your json should be like this:
{
name: 'question1',
type: 'text',
inputType: 'number',
title: 'Please enter value from 0 to 100:',
min: 0,
max: 100,
step: 1,
validators: [
{
type: 'numeric',
minValue: 0,
maxValue: 100,
errorText: 'Your value is not in the range [0...100]',
},
],
},
Here is the example.
Thank you,
Andrew
Thank you, this worked for the second part of my question what about the first any ideas ?
@AWIXOR You can use survey.onAfterRenderQuestion event to update the html element. Here is the example.
Thank you,
Andrew