0 votes

Is there a way to make a slider that moves from 1-6 using only integers?

*question: 1
	*type: slider        
	*min: 1        
	*max: 6        
	*before: outgoing        
	*after: shy
by

1 Answer

+1 vote

There are several ways, all following the same trick – you have to enumerate all of the steps you want your slider to have.

Here's one way to do it:

*question: How are you?
	*type: slider
	*before: Lousy
	*after: Great
	*save: rating
	1
	2
	3
	4
	5
	6

That might be okay for six options, but if you had more you might want a more compact way to define the possible answers. Here's how:

>> scale = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

*question: How are you?
	*type: slider
	*answers: scale
	*before: Lousy
	*after: Great
	*save: rating
by (1.8k points)
Welcome to Guidedtrack Q&A, where you can ask questions and receive answers from other members of the community.
134 questions
144 answers
55 comments
40 users