I never see issue with usage of lt, gt, le or ge …Psonder wrote: I have tried lt/gt but it does not validate.
manual.limesurvey.org/Expression_Manager#Operators
I never see issue with usage of lt, gt, le or ge …Psonder wrote: I have tried lt/gt but it does not validate.
Okay, understood.You need a have a way to know if ech option must be checked or not.
Yes, but thought that everything was included in the code line. Can you please give an example of the part with reset to empty?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
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.Then : use token + prefill value for each token using VV import : it's the method i always use …
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>
To add to the confusion...Why are you citing also "script"?
support.sondages.pro/?lang=en_USkrosser wrote:
Okay, understood.You need a have a way to know if ech option must be checked or not.
Yes, but thought that everything was included in the code line. Can you please give an example of the part with reset to empty?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
I always use LibreOffice calc for vv edition : never have issue …krosser wrote:
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.Then : use token + prefill value for each token using VV import : it's the method i always use …
Not really helpful.DenisChenu wrote: support.sondages.pro/?lang=en_US
Yeah, I use it too for CSVs. Will see how this works for complex questions.DenisChenu wrote: I always use LibreOffice calc for vv edition : never have issue …
really helpful if you open a ticketkrosser wrote: Not really helpful.
There are NO reset to empty : all is included inCan you please give an example of the part with reset to empty?
equG1 just have 1
If you have 5 ro 10 question to prefill : really easy to dokrosser 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...
I already give you all information to do it …kevinleung wrote: Hi Denis, Do you have any ideas to update the token twig file? Thank you.