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.
↧
Using the same token multiple times - by: holch
↧
problem with multiple choice questions combined with exclusive option and matrix - by: Joffm
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
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
Perfect, thanks!!
↧
problem with multiple choice questions combined with exclusive option and matrix - by: Joffm
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
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
Hi everybody,
I would like to do the following in a survey:
Is this possible? How would I go about implementing this?
Thanks,
Stefan.
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
Thanks a lot Joffm, now it's working.
Best regards
Andrea
Best regards
Andrea
↧
Autocompleted Address breakdown into multiple fields - by: tpartner
I would add sub-questions for all of the address components and use a script like this (replace YourAPIKey with a valid key):
Sample survey (you will need to insert a valid API key in the src of the first script):
<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):
↧
Modify privacy.pstpl - by: Joffm
↧
Using the same token multiple times - by: DenisChenu
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
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
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
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
Quick answer : you can't … really you can't …
Question key are qid + language
Question have sid and gid
Then you can't.
And yes : API is here, or take a look at VV import/export
Else : you can use gitlab.com/SondagesPro/coreAndTools/getQ...surveyCodeHelper.php : return an array for DBcolumn (123X12X1234) to EM question code (Q01)
Question key are qid + language
Question have sid and gid
Then you can't.
And yes : API is here, or take a look at VV import/export
Else : you can use gitlab.com/SondagesPro/coreAndTools/getQ...surveyCodeHelper.php : return an array for DBcolumn (123X12X1234) to EM question code (Q01)
↧
Randomly generate questions - by: Joffm
And here the example of the second idea.
Three out of eight as example.
Joffm
By the way, the text of the phrases is German; was easier and quicker.
Three out of eight as example.
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
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.
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
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
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
Yes
manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29
Else you can set specific relevance for each subquestion manual.limesurvey.org/Adding_answers_or_...fic_for_Sub_question
manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29
Else you can set specific relevance for each subquestion manual.limesurvey.org/Adding_answers_or_...fic_for_Sub_question
↧
Forcing question IDs? - by: caitifty
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
Kind regards
Peter
↧
problems with URL - by: Joffm
Hi,
remove the placeholder {SURVEYURL} from the email template and insert the URL manually.
Joffm
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
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
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
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
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
Can you send invitations through the LS GUI?
What is returned by $newMail?
If you see the error message, try replacing
with:
or
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;
↧