Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Slider: Single value default starting position


I'm using the slider: single value from the question library.  I have it set up with the row and column labels being hidden and using a single row.  I modified the values in your script for -100 min and 100 max.  The slider bar always starts to the left and I didn't see in the script where to change that.  How can I have it always starting in the center by default?
asked Oct 15, 2019 by Jay Rutherford Gold (37,685 points)

1 Answer

+1 vote
Best answer
I'm not sure why I didn't put that in as a setting.  It's a fairly simple change.  On line 69, locate this:

value: isRtlOrTtb ? max : min,

Just replace that with this and you should be good to go:

value: 0,
answered Oct 15, 2019 by Zachary Platinum Sawtooth Software, Inc. (153,100 points)
selected Oct 16, 2019 by Jay Rutherford
Perfect!  Just what I needed, thanks.  I had wondered about that line when I looked through it but wasn't sure what to change.