Focal Point
Slider Control Default Value

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9497044236

July 26, 2013, 09:01 AM
TexasStingray
Slider Control Default Value
I'm tyring to set the default value of the slider control to 100 where the range is 0 to 100. The reason is I actuall have 2 slider controls and I want the users to be able to specify a range of valus where the default for the minimum value is 0 and the maximum value is 100. so I need to set the max to 100 when the page first loads up.




Scott

I'm thinking that it's a bug... The default, in one which I just created is 100, for the 2nd slider. But, they they both start at 0. They do both slide from 0 to 100.
How did you set the default? If you used a -DEFAULT in procedure I do not believe it reads that.




Scott

I did the basic
-DEFAULT &Slider1 = 0
-DEFAULT &Slider2 = 100
-TYPE *** Sliding from &Slider1 TO &Slider2 ***
But, the htm page still started both sliders at 0 with max limits of 100.
Like this:
Thats what I did. with 0 and 100. I would think that it would be a control on thr HTML Page itself. If anyone know how to do it with javascript I'm ok with that as well.

This message has been edited. Last edited by: TexasStingray,




Scott

quote:
how to do it with javascript

Now, there's a thought...
Got it with JavaScript in WF 8.0.0.2M

function onInitialUpdate() {
IbComposer_setCurrentSelection('slider3', 100, false);
}

This message has been edited. Last edited by: TexasStingray,




Scott

I like it...