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

Make "Submit" button appear only if people answer "Yes" for a Yes/No question - by: FaLifeTime

$
0
0
Hi,

i tried the script and works perfectly. My situation is that i'm trying to only condition the submit button if a particular YES/NO question "shows up". If its hidden or not, with this code it always gonna wait for the user to response the YES/NO question.

Is there a way to only make this code works if the question is visible?

Thanks and excuses me for my english,
4aLifeTime

Make "Submit" button appear only if people answer "Yes" for a Yes/No question - by: tpartner

$
0
0
How is the question hidden? By relevance on this page or by something on previous pages?

If on previous pages, this should work:

<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
 
		// Identify this question
		var thisQuestion = $('#question{QID}');
 
		// Initially disable the Next/Submit button
		if($(thisQuestion).is(':visible')) {
			$('#movenextbtn, #movesubmitbtn').prop('disabled', 'true').addClass('ui-state-disabled');
		}
 
		// Listeners on Yes/No radios to toggle the Next/Submit button
		$('input.radio[value="Y"], label[id$="X{QID}Y"]', thisQuestion).click(function(){
			$('#movenextbtn, #movesubmitbtn').prop('disabled', '').removeClass('ui-state-disabled');
		});
		$('input.radio[value="N"], label[id$="X{QID}N"]', thisQuestion).click(function(){
			$('#movenextbtn, #movesubmitbtn').prop('disabled', 'true').addClass('ui-state-disabled');
		});
 
    });
</script>

If dynamically on this page, you will need listeners on whatever questions are showing/hiding this question.

Change height of navbar - by: Robert1973

$
0
0

tpartner wrote: To avoid messing with the whole template, I would simply give the image an inline style to push it up.

<img alt="" src="/bewustzijnmeter/kaarten/TFH-IC 1.1 Rust 3.jpg" style="width: 100%; margin-top: -50px;" />

This works very well, thank you Tony!

I now use something like :
<img alt="" src="/bewustzijnmeter/kaarten/TFH-IC 4.3 Voelen 3.jpg" style="height: 80vh; max-width: 100%; margin-top: -60px; float: left;" /></div>

The result is an image on the left side and my question right next to it. However, the answers are below my image and would like to have them next to the image. See enclosed picture.

Do you know how to do this?

Automatically proceed to next question after selecting answer - by: tomtom

$
0
0
Hi Joffm and Tony. Thank you for your kindness, it is exactly what I want! If participant say NO, they will be auto passed to next, so for YES answers, participant should spend more time on thinking the likert scale answers. Great!!!

Navigating through question group and showing unanswered questions - by: dlaroche

$
0
0
Dear all,

I have created a survey with a let's 5 groups. All questions in each group are not mandatory in order for the user to navigate through all questions while keeping some un-answered questions.

I have added one more group after the 5 groups that shows each group, each questions and whether the question has been answered or not. I am able to create a link that will jump to the group of the question in each line of my summary report.

What i am trying to do, and i cannot make it work is, when i click on the link for one questions is to jump to the group and display (show on the screen) the question (automatic scrolling) ?

My requirement to enable a user to jump directly to a question, specifically when he comes back to the survey (closed mode with token) from a summary page. I don't want to display question by question but question within a group as questions might be link. Finally i am using lime survey to do assessment, not really like for the concept of a survey.

Thanks for your help,

Change height of navbar - by: tomtom

$
0
0
Great Joffm!

My changes:

Org:
.navbar-brand {
float: left;
padding: 19.5px 15px;
font-size: 20px;
line-height: 18px;
height: 18px;
}

New:
.navbar-brand {
float: left;
padding: 5px 10px;
font-size: 16px;
height: 15px;
}

Personalized question index - by: LouisGac

Make "Submit" button appear only if people answer "Yes" for a Yes/No question - by: FaLifeTime

$
0
0
Exactly what i needed. Thanks a lot!

Personalized question index - by: mcovents

$
0
0
Thank you for you response!

Marc

Make "Submit" button appear only if people answer "Yes" for a Yes/No question - by: Joffm

$
0
0
Hi, all,
to be honest, I do not understand this question.

Why should anybody insert a question which offers two answer options, but one without any function?

I think of a scenario like "You have to agree to our terms to proceed...."
In this case people are used to tick a checkbox .

So why not just use a mandatory multiple question with one subquestion.

This should cover everything needed.

Except the challenge for Tony to find a way and develop a new script;)


Maybe somebody can explain to me why this approach with "Yes/No", but without possibility to click "No", was the only way.

Best regards
Joffm

Filtering answers options in list dropdown maintaining other option - by: lfanfoni

$
0
0
I need to filter answers options in a list dropdown, using a equation question in a previous page or a token attribute.
I have to keep the 'other' option in every case.
I thought to adopt this solution: manual.limesurvey.org/Workarounds:_Manip..._Javascript#Method_2
filtering the first two characters of options code. But I cannot refer to a question in a previos page or a token attribute, and i don't know how to keep the standard other option.
I'm using current 2.7X.
Please help me to achieve this. Thanks a lot
Luciano

Answer in email - by: marektondryk

$
0
0
Hi
I've got 'Multiple short text' question with subquestions: SQ001, SQ002, SQ003.
How can I place this answers (SQ001,etc) in admin email notification?

Can I answer and subanswer? - by: ymca

$
0
0
Hi,

I have a very long list of places.
I have tried to insert them as answers, but I see that LS cannot handle that long list.
So I've tried to cut the list to subplaces.

But now I dont know how to let the voters choose a place and then a subplace.

Can I do that with LS 2.7x or only with the new LS 3?

Answer in email - by: tpartner

Can I answer and subanswer? - by: tpartner

$
0
0
One initial question to ask the subplace, several following questions hidden/shown via relevance based on the answer to the first question.

Filtering answers options in list dropdown maintaining other option - by: tpartner

$
0
0
Oops, sorry, forgot that requirement.

<script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
 
		// Identify this question
		var thisQuestion = $('#question{QID}');
 
		var chooseText = 'Please choose...';
 
		// Get the filtering value
		var filterValue = '{Q2}';
 
		// Handle previous answers
		var selectVal = $.trim($('.answer-item select', thisQuestion).val());
		if(selectVal != '' && selectVal != '-oth-' && selectVal.substr(0, 2).toUpperCase() != filterValue) {
			$('.answer-item select', thisQuestion).prepend('<option value="">'+chooseText+'</option>').val('').trigger('change');
		}
 
		// Loop through all dropdown options and remove those with codes not starting with the filterValue
		$('.answer-item select option', thisQuestion).each(function(i){
			if($(this).attr('value') && $(this).attr('value') != '-oth-'  && $(this).attr('value').substr(0, 2).toUpperCase() != filterValue) {
				$(this).remove();
			}
		});
	});
</script>

Sample survey attached:

File Attachment:

File Name: limesurvey_survey_748898_2017-11-25-2.lss
File Size: 19 KB

Email the contents of a survey to the survey taker? - by: shmish

$
0
0
I've searched around a bit for this, but I'm not 100% sure that it can be done.
I'd like a non-authenticated user (ie anonymous user) to fill out a survey which includes their email address as a text field. I Upon submitting the survey, the contents of the survey will be emailed to them. Is this possible? From my search I get the feeling that it might be doable using expressions, but at this time I really don't know how it would work. If it is possible, do you know of any examples that would help me get started?

thanks

Answer in email - by: tpartner

$
0
0
Sorry, I don't understand the question. What email do you want to insert the answer into?

Filtering answers options in list dropdown maintaining other option - by: lfanfoni

$
0
0
It works perfectly!
Eternal gratitude!

Luciano

Not re-filling questions in registered mode. - by: tpartner

$
0
0
You can assign a token attribute and hide those questions via relevance based on that.
Viewing all 17529 articles
Browse latest View live


Latest Images

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