Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all 17529 articles
Browse latest View live

Using the same token multiple times - by: holch

$
0
0
This should work, if uses left is positive, the link should be usable. But then you are using a version that is almost 2 years old. This might be a bug in your specific version. Don't know.

problem with multiple choice questions combined with exclusive option and matrix - by: Joffm

$
0
0
Hi, Andrea,

I should just add this conditions to the relevance equation of Q3

(Q1_DK.NAOK != "Y") and ((Q2_1!="Y") OR (Q2_2!="Y") OR (Q2_3!="Y"))

Joffm

Reuse survey link - by: jimdavies

problem with multiple choice questions combined with exclusive option and matrix - by: Joffm

$
0
0
Hi, Andrea,



I set the relevance equation of Q3 to:
(Q1_DK.NAOK != "Y") AND ((Q1_1.NAOK=="Y" AND Q2_1.NAOK!="Y") OR (Q1_2.NAOK=="Y" AND Q2_2.NAOK!="Y") OR (Q1_3.NAOK=="Y" AND Q2_3.NAOK!="Y"))

and it works

And:
(Q1_DK.NAOK != "Y") AND (count(that.Q1.NAOK)!=count(that.Q2.NAOK))
works as well.

Joffm

Randomly generate questions - by: spalan

$
0
0
Hi everybody,

I would like to do the following in a survey:

  • I provide a list of five-word sets, in for example a .csv file (example for one set: "weather, fine, is, The, today")
  • Limesurvey should randomly draw sets from this list and display them to the people taking the survey
  • Participants have to enter the order of the words to form a correct sentence (e.g., 4, 1, 3, 2, 5; which would correspond to "The weather is fine today")
  • This repeats for a fixed amount of time, e.g., 5 minutes

Is this possible? How would I go about implementing this?

Thanks,
Stefan.

problem with multiple choice questions combined with exclusive option and matrix - by: Andrea01

$
0
0
Thanks a lot Joffm, now it's working.

Best regards
Andrea

Autocompleted Address breakdown into multiple fields - by: tpartner

$
0
0
I would add sub-questions for all of the address components and use a script like this (replace YourAPIKey with a valid key):

<script src="https://maps.googleapis.com/maps/api/js?key=YourAPIKey&libraries=places"></script><script src="jquery.geocomplete.js"></script>
<script>
	function init() {
		$('#displayCounty').hide();
 
		// Disable the partial-address inputs
		$('#question{QID} input:text:gt(0)').prop('readonly', true);
 
		// Un-comment below to hide the partial-address inputs
		//$('#question{QID} input:text:gt(0)').hide();
 
		var input = document.getElementById('answer{SID}X{GID}X{QID}SQ001');
		var autocomplete = new google.maps.places.Autocomplete(input);
 
		autocomplete.addListener('place_changed', function() {
			var place = autocomplete.getPlace();
			var components = place.address_components;
			if (components) {
				for (var i = 0, l = components.length; i < l; i++) {
					var component = components[i];
					if (component.types && component.types.indexOf('street_number') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ002').val(component.long_name);
					}
					if (component.types && component.types.indexOf('route') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ003').val(component.long_name);
					}
					if (component.types && component.types.indexOf('locality') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ004').val(component.long_name);
					}
					if (component.types && component.types.indexOf('administrative_area_level_2') !== -1) {
						$('#displayCounty').text('County: ' + component.long_name);
						$('#displayCounty').show();
						$('#answer{SID}X{GID}X{QID}SQ005').val(component.long_name);
					}
					if (component.types && component.types.indexOf('administrative_area_level_1') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ006').val(component.long_name);
					}
					if (component.types && component.types.indexOf('country') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ007').val(component.long_name);
					}
					if (component.types && component.types.indexOf('postal_code') !== -1) {
						$('#answer{SID}X{GID}X{QID}SQ008').val(component.long_name);
					}
				}
			}
		});
	}
	google.maps.event.addDomListener(window, 'load', init);
</script>



Sample survey (you will need to insert a valid API key in the src of the first script):

File Attachment:

File Name: limesurvey_survey_1617671.lss
File Size: 30 KB

Modify privacy.pstpl - by: Joffm

$
0
0
Oh,

Do you have rights to change templates?

In privacy.pstpl you can remove the placeholder {PRIVACYMESSAGES} and enter your own text.
Style it with a bit of css.

But remember, this text will be displayed always. So only use this template in anonymized surveys.





Joffm

Using the same token multiple times - by: DenisChenu

$
0
0
Set completed to N, if i remind with use left > 1 it's not set to N until use left is at 0.

Randomly generate questions - by: Joffm

$
0
0
Hi, spalan,
my suggestion:

1. Create a question of type "long free text" (Fr) with your word sets as lines
#1#This,a,high,is,house
#2#nice,a,Karen,is,girl
#3#bull,The,runs, quickly,very
#4#Phoenix,capital,Arizona,the,is
All lines should have the same length (right filled with blanks)

2. LimeSurvey does not support loops.
So you have to create a maximum number of question groups, let's say 30.
In each group you
  • create a random number between 1 and the numbert of word sets
  • select the set by string functions like "trim(substr(Fr, strpos(Fr, '#' + random + '#') + strlen(random) + 2, [fixed length of line]))"]
  • put each word of the set into the ranking question

3. LimeSurvey doesn't have a surveywide timer.
So your respondents will do all tests. Therefore estimate before how much will be necessary to fill 5 minutes.
Afterwards (in the analysis) remove all answers of the respondent that exceeded the 5 minutes.
In the export you will get the duration of each group.

For the first part I have an example. I will adapt it to your desire tomorrow.

Best regards
Joffm

Forcing question IDs? - by: DenisChenu

Randomly generate questions - by: Joffm

$
0
0
And here the example of the second idea.

Three out of eight as example.

File Attachment:

File Name: limesurvey_survey_597171.lss
File Size: 30 KB


Joffm


By the way, the text of the phrases is German; was easier and quicker.

Only display sub-questions if sub-questions are answered in a previous question? - by: sewalsh

$
0
0
Apologies if the thread title is confusing. I'll demonstrate with two examples.


Question 1.
- sub-question 1
- sub-question 2
- sub-question 3

Question 2
- sub-question 1
- sub-question 2
-sub-question 3


If the user provides an answer to 'Question 1 - sub-question 1', is it possible to use logic to only display 'Question 2 - sub-question 1'?

I only want to ask the sub-questions based on what the user answers in a previous question.

API: Invite participants to a survey - by: davebostockgmail

$
0
0
Hi Tony

I know this is a year old ... I have been trying this script as we now have a need to do this and it creates the entry into the token field but then refuses to send the email ... any thoughts?

Using 2.6.4 lts

Any hints or advice most welcome

Dave

Only display sub-questions if sub-questions are answered in a previous question? - by: DenisChenu


Forcing question IDs? - by: caitifty

$
0
0
Thanks Denis, I think the code you provided will solve my problem by letting me automate identifying the DBcolumn connected to each question code for each installation.

Kind regards

Peter

problems with URL - by: Joffm

$
0
0
Hi,

remove the placeholder {SURVEYURL} from the email template and insert the URL manually.

Joffm

Only display sub-questions if sub-questions are answered in a previous question? - by: Joffm

$
0
0
Hi,
the most important question is:
What type of question are your "Question 1" and "Question 2"?
multiple choice, arrays, multiple numeric, multi text? Or what?

As Denis said: Read the manual, how to set the subquestion relevance or array filter.

Best regards
Joffm

Scoring throughout survey - by: Joffm

$
0
0
Hi,
I hope, your questions have numerical codes of answer options. (makes it easier)

Use Expression Manager to calculate everything you need.

Then in the relevance equation of your additional question just say "myScore>100" or whatever.

Without knowing your types of questions it's a bit raw, I know.

Joffm

API: Invite participants to a survey - by: tpartner

$
0
0
Can you send invitations through the LS GUI?

What is returned by $newMail?

If you see the error message, try replacing

echo 'Error - no invitation sent!';

with:

print_r($newMail);

or

echo $newMail;
Viewing all 17529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>