Limesurvey 3 Answers Slider Bar - slider

I have a slider bar where I have two answer choices along with the choices "No answer" and "I'm unsure" which were modified in Javascript. I wanted to add another answer choice, to have three in total.
Does anyone know how to do this using Limesurvey or Javascript?

Is this the kind of thing you want to do?
I used element type "Multiple numerical input" and changed settings to:
Use slider layout: Yes
Slider minimum value: 0
Slider maximum value: 100
Slider accuracy: 1
Slider initial value: 0
Allow reset the slider: Yes

Related

Limit rows on auto growing text area (Sencha Touch)

I have the following snippet of code for auto expanding the textarea in sencha touch. I need to cap it out at a set number of rows.
Any ideas?
http://www.senchafiddle.com/#Q9gjN
Wouldn't this be great if it were a nice, easy to use property.
At first I thought it would be the maxRows property but this is just the number of rows to display before the vertical scrollbar appears.
It may be that the only way would be a complicated solution such as this: http://www.codeproject.com/Articles/56392/How-to-Limit-the-Number-of-Lines-and-Characters-in
or
Limiting number of lines in textarea
EDIT: I needed to cap the number of rows in an address to 5 lines.
One approach could be to listen to the keyup event on the textareafield, check for the 'Enter' key and then revert back to previous input.
The approach I have taken is just to add validation to the model, which works great.
{ type: 'format', field: 'Address', message: 'Address cannot be more than 5 lines.', matcher: /^([^\r\n]{0,50}(\r?\n|$)){5}$/ }
The regex restricts saving a record to the store that has more than 5 lines, of more than 50 chars.

Change pace in Slider JavaFx possible?

Maybe, im just blind but i got an slider and i need to know if there is any way to change the paces.
Example:
Slider from 7.5 to 13.0
Pace 0.5
When i set the value in the label, i would like to have something like this:
7.5;
8.0;
8.5
For every movement with the slider i get something like this at this moment:
7.5;
7.51
Tried everything. Any idea?
Set the tick unit for the slider and snap it's value to the ticks.
For the sample values you give in your question:
import javafx.scene.control.Slider;
...
Slider slider = new Slider(7.5, 13, 7.5);
slider.setMajorTickUnit(0.5);
slider.setMinorTickCount(0);
slider.setSnapToTicks(true);
From the Slider setSnapToTicks javadoc:
Indicates whether the value of the Slider should always be aligned with the tick marks. This is honored even if the tick marks are not shown.

I want to make a custom slider

I made a simple slider by jcarousellite but i need to make something else:
I need the first visible image to be large what should i do ?
Or how i can select the first visible image in slider?
#option start : number - default is 0 #example $(".carousel").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
start: 2 }); #desc You can specify from which item the carousel should start. Remember, the first item in the carousel has a start of 0, and so on.

Widget integrated going out of its own zone

I got a main window (Item) with a 640*480 size.
I integrated a custom widget defined in another qml file, its size is 100*100. This item contains a Pathview that only shows 3 items from a list containing a lot of items.
The thing is that when I add my CustomPathView to my main window at coords (0, 0), the PathView goes to the bottom of my main window, displaying 7/8 items... (?!?)
My CustomPathView.qml file starts with :
Item {
width: 100
height: 100
That's why I really don't understand why it is displaying 8 items...
Did I do something wrong ? Do I have to precise to my CustomPathView that he can't go out of its zone (how ?) ?
Thanks in advance for any help about it !
Just set the clip property to true.

Flotr Y Axis Title

Hi In Flotr Playground (http://flotr.googlecode.com/svn/trunk/flotr/playground/index.html) site also the Y Axis Title is appearing in a Horizontal Way
See the Image here http://www.tiikoni.com/tis/view/?id=c57a22f
Please tell me how to resolve this ??
I want to have the Text in Vertical Style for Y axis Under my Charts .
You need to disable the option HtmlText by setting it to false.
options = {"HtmlText": false, "yaxis": {"title": "abc", "titleAngle": 90}};
As Fabien Ménager mentioned, You need to turn off the HtmlText option. Then the title and the title angle can be adjusted.
Check out the quick start guide
Looks like you need to investigate a little more, and work out the solution by playing with the Flotr.draw() options