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

EM special characters in email templates - by: DenisChenu


Prefilling default answers based on tokens for various types of question - by: DenisChenu

$
0
0
Multiple choice : Y or empty, need an extra part to disable reset to empty. For example : another eqution question in the groupe , equG1

{Q00_sq01=if(is_empty(equG1.NAOK),if(TOKEN:ATTRIBUTE_2,"Y",""),Q00_sq01.NAOK)}

and equG1 just have 1 …

EM special characters in email templates - by: Psonder

$
0
0
You were right, I got it to work, thanks again!

Export Template - by: gabrieljenik

Prefilling default answers based on tokens for various types of question - by: krosser

$
0
0

You need a have a way to know if ech option must be checked or not.

Okay, understood.

Did you read ?
«Multiple choice : Y or empty, need an extra part to disable reset to empty. For example : another eqution question in the groupe , equG1» equG1 is here to know if user get to the group

Yes, but thought that everything was included in the code line. Can you please give an example of the part with reset to empty?

Then : use token + prefill value for each token using VV import : it's the method i always use …

Okay, I thought that token attributes would be a better way, especially when it is written in the instructions to VV that there might be errors with importing CSV back to LimeSurvey.

HeatMap integration - by: tpartner

$
0
0
I'm not sure what the thinking behind the overlay was but this will work in 3.x and is responsive. It also handles returning to the page.

Question 1:<br /><br />
<div class="image-wrapper" style="border:2px solid #999; width: 100%; max-width: 600px; position:relative">
	<img src="http://www.google.com/logos/doodles/2015/fifa-womens-world-cup-2015-finals-5184884003831808-hp2x.jpg" style="border:0 none; width: 100%; height: auto;" />
</div>
<script type="text/javascript" charset="utf-8">		
	$(document).ready(function() {	
 
		// Identify this question
		var thisQuestion = $('#question{QID}');
 
		// Hide the text input - un-comment below
		//$('input.text', thisQuestion).hide();
 
		// Create the click "marker"
		$('.image-wrapper', thisQuestion).append('<div class="click-marker" />');
		var leftVal = 0;
		var topVal = 0;
		var displayVal = 'none';
		if($.trim($('input.text', thisQuestion).val()) != '') {
			leftVal = $.trim($('input.text', thisQuestion).val()).split(',')[0]+'%';
			topVal = $.trim($('input.text', thisQuestion).val()).split(',')[1]+'%'; 
			displayVal = 'block';
		}
		$('.click-marker', thisQuestion).css({
			'display': displayVal,
			'position': 'absolute',
			'left': leftVal,
			'top': topVal,
			'margin': '-10px 0 0 -10px',
			'width': '18px',
			'height': '18px',
			'-moz-border-radius': '10px',
			'-webkit-border-radius': '10px',
			'border-radius': '10px',
			'background': '#0C0',
			'border': '1px solid #090'
		});
 
		// Click event on the image
		$('.image-wrapper, img', thisQuestion).on('click', function(e) {
			var thisWidth = $(this).width();
			var thisHeight = $(this).height();
			var posX = $(this).offset().left;
			var posY = $(this).offset().top;
			var xCoord = e.pageX - posX;
			var yCoord = e.pageY - posY;
			var xCoordPercent = (xCoord/thisWidth)*100;
			var yCoordPercent = (yCoord/thisHeight)*100;
 
			// Load the click coordinates (as relative percentages)
			$('input:text', thisQuestion).val(xCoordPercent.toFixed(2)+','+yCoordPercent.toFixed(2));
 
			// Reposition the marker
			$('.click-marker', thisQuestion).css({
				'display': 'block',
				'left': xCoordPercent+'%',
				'top': yCoordPercent+'%'
			});
		});
 
		// Returning to the page
		if($('input:text', thisQuestion).val() != '') {
			var coords = $.trim($('input:text', thisQuestion).val()).split(',');
			$('.click-marker', thisQuestion).css({
				'display': 'block',
				'left': coords[0]+'%',
				'top': coords[1]+'%'
			});
		}
	});
</script>



Sample survey attached:

File Attachment:

File Name: limesurvey_survey_8817141_2019-11-22.lss
File Size: 18 KB

Provide advice after all the answers - by: gabrieljenik

Send response pdf in email - by: rickanderson

$
0
0
Hi Denis...

As an alternative (if there is currently no easy way to print landscape using pdfReport/limeMpdf) would it be possible to use the email functionality of pdfReport to send a PDF generated via html2pdf?

Cheers

...Rick.

Provide advice after all the answers - by: holch

$
0
0

Why are you citing also "script"?

To add to the confusion... ;-)

There is currently a discussion to rename "Expression Manager" into "Expression Script" because it explains better what it actually is. It is a script language that allows you to "program" certain things (Expression). It is the same thing. I am just preparing already in case it gets renamed in the future. Then the mention of "Expression Manager" might not make sense to everyone.

Expression Manager looks scary at the beginning, but there are good explanations in the manual, especially look into "micro tayloring", which is what you mostly need.

You probably will need some time to get your head around it, but then what you are trying to do is not a simple thing. Once you have the idea, it will be probably really quick.

You can use text display questions with expressions in it to deliver your advice. Once you have started and run into specific problems, you can always come back and ask specific questions. But first you should read through the pages about expression manager in the manual and download the example LSS files. this will give you a very good base to write your own expressions and create your taylored report at the end of the survey.

Section 508 compliance for people w. disabilities - by: rachellerena

$
0
0
My overall question is that our respondents will come from all abilities. We will need to report to accessibility teams on the availability of using LimeSurvey for them. However, I do not see any pages or wikis or anything that report on how accessible the tool is for admins or for respondents. Or, if it is more accessible in some modes versus others. E.g. screen readers, keyboard only, low vision, etc.

This is what I am looking for. I cannot just have every single user with an issue suddenly start coming here to submit bug requests. We don't have any bugs. We want to know the accessibility level of the application please.

Send response pdf in email - by: DenisChenu

Prefilling default answers based on tokens for various types of question - by: DenisChenu

$
0
0

krosser wrote:

You need a have a way to know if ech option must be checked or not.

Okay, understood.

Did you read ?
«Multiple choice : Y or empty, need an extra part to disable reset to empty. For example : another eqution question in the groupe , equG1» equG1 is here to know if user get to the group

Yes, but thought that everything was included in the code line. Can you please give an example of the part with reset to empty?
support.sondages.pro/?lang=en_US

krosser wrote:

Then : use token + prefill value for each token using VV import : it's the method i always use …

Okay, I thought that token attributes would be a better way, especially when it is written in the instructions to VV that there might be errors with importing CSV back to LimeSurvey.
I always use LibreOffice calc for vv edition : never have issue  …

Show the Token number in Token page - by: kevinleung

$
0
0
Hi all,

This is Kevin from HK.
I am designing a survey.
When the respondent clink on the link and put the respondent ID, their name will show on the screen.
So I uploaded participants table, and put their background.
However, I don't like the design of "Token Page". I don't want the text box showing "......"
I want to show the text (Like normal text box).

Anyone have ideas to solve the problem? Thank you very much!

Prefilling default answers based on tokens for various types of question - by: krosser

$
0
0

DenisChenu wrote: support.sondages.pro/?lang=en_US

Not really helpful.

DenisChenu wrote: I always use LibreOffice calc for vv edition : never have issue  …

Yeah, I use it too for CSVs. Will see how this works for complex questions.
It is just token attributes seemed easier and quicker because you do not need to analyse the structure of the exported CSV and map your question answers to codes used there. It is a lot of manual work, or writing additional scripts in R for prepopulating the CSV. You do not always have that time...

Show the Token number in Token page - by: DenisChenu


Prefilling default answers based on tokens for various types of question - by: DenisChenu

$
0
0

krosser wrote: Not really helpful.

really helpful if you open a ticket :)

Can you please give an example of the part with reset to empty?

There are NO reset to empty : all is included in
In the 1st equation (don't care about title)

Andf about 2nd equation

equG1 just have 1


If you can not do with this instruction : open a professional support ticket.

krosser wrote: Yeah, I use it too for CSVs. Will see how this works for complex questions.
It is just token attributes seemed easier and quicker because you do not need to analyse the structure of the exported CSV and map your question answers to codes used there. It is a lot of manual work, or writing additional scripts in R for prepopulating the CSV. You do not always have that time...

If you have 5 ro 10 question to prefill : really easy to do

Show the Token number in Token page - by: DenisChenu

$
0
0

kevinleung wrote: Hi Denis, Do you have any ideas to update the token twig file? Thank you.

I already give you all information to do it …
I can do it for you with a support ticket .

Default setting for decimal_mark - by: halliballi123

$
0
0
Hello,

I upgraded from LimeSurvey 2.xxx to LimeSurvey 3.20 when I now create a new survey the default setting for decimal_mark is dot before I upgraded it was comma.

Is there some menu where I can make comma default for all new surveys?
Or should the decimal_mark be bound to default language?

Default language in global settings is German.

Prefilling value, variable type - by: Jmantysalo

$
0
0
I want to add a participant to survey with API and prefill a field of type "Short free text". I tried

$new_user=array( array("email" => $email, "token" => $mycode, "validfrom" => $time1, "validuntil" => $time2, "responses" => array("aquestioncode" => "an answer")) );
$myJSONRPCClient->add_participants($sessionKey, LS_SURVEY_ID, $new_user, False);

but this does not work. The participant is added, but the question with code "aquestioncode" is not prefilled. So I suppose that the string must be converted to some other type, but to what and how?

Interactive Bar Chart in LimeSurvey - by: BusyBonsai

$
0
0
Dear Limes

- in this case I am using LS Version 2.73.0+171219 -

I am looking for a way to implement an interactive bar chart in an online survey, responding on numerical inputs.
I imagine as follows:

question type: multiple numerical input
sum validation: 100 (percentage)
placing a bar chart (e.g. in the question text field) where bars are drawing when input is altered.
lets say the bar chart is empty at first, just showing the horizontal axis from 0 to 100 and the y axis with three variables a, b and c.
So there are three numerical input fields a,b and c.
When the respondent types in "30" in input field a, graph a will be drawn from 0 to 30.
Then, when the respondent types in "50" in input field b, graph b will be drawn from 0 to 50.
When the respondent types in "20" in input field c, graph c will be drawn from 0 to 20.

I am pretty certain this should be possible with e.g. highcharts or google charts, but couldn't manage to code it yet. Do you have any suggestions?

Best
Adam
Viewing all 17529 articles
Browse latest View live