Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: html)

  • DenisChenu
  • DenisChenu's Avatar
31 Mar 2014 09:28
Replied by DenisChenu on topic CAPI and offline data entry
  • rezyface
  • rezyface's Avatar
28 Mar 2014 18:22
Replied by rezyface on topic Unique Suffix by Row for an Array Question
Thank you so much! Working like a charm now!

Do you have any specific website / book in mind that you would recommend for learning Javascript? Any website/book that would focus on Javascript as it applies to LimeSurvey?

My background: I use SAS professionally (been writing SAS programs that interact with the LimeSurvey SQL tables - quite fun) and I know a little Java as well as a much smaller amount of Perl. My HTML / JS knowledge is unfortunately minimal and any JS I have used in previous Lime surveys has been done by scouring the forums / manual and editing/testing copied code to make it work for my purposes.

Again, big thank you for your time!
  • holch
  • holch's Avatar
27 Mar 2014 16:48 - 27 Mar 2014 16:49
Replied by holch on topic Subset of answer options?
No, I think this is the way you will need to do it.

You might be able to make your life a little easier by using Excel to insert the HTML code already and join the text of the cells (em Portgues a formula em exel seria concatenar). this might make things a little quicker and you have the whole concept ready to copy in one cell. But I think this is all you can do.
  • blacknail
  • blacknail's Avatar
27 Mar 2014 15:43
Replied by blacknail on topic Subset of answer options?
Thanks for the answer, holch. Can you be more specific? In fact, I've already have an .xls file with all the 4-profile combinations I need, I'm just copy-pasting it to the label set and adding the respective HTML code. From your answer I'm guessing you're suggesting something else, so if you could elaborate a little more on what you mean by "(...) and then only once the design is finalized you will upload those profiles in the respective combinations to the respective questions" it would be awesome.
  • tsukeyomi
  • tsukeyomi's Avatar
26 Mar 2014 13:45
Hi LimeSurvey's community! :cheer:

First of all I would like to thank everyone who contributed to make this awesome tool. Without you nothing of this would be possible. :blush:
Then I would like to ask a few and (I think) simple things.

I'd like, when the survey has ended, to show statistics about what other chose; if I can show charts and stuff like that it would be even better! And is there a way to show it in a way that the users sees "you and X other chose option n. 2"? That would be amazing.

I would also like to put, in the same page, a link (or button) that redirects to a page that I like. I know how to do that in HTML but I don't know where I could put the correct code.

Thanks to anyone who will help! :laugh:
  • helviobrito
  • helviobrito's Avatar
14 Mar 2014 23:09 - 15 Mar 2014 00:16
:huh: Hi fellows.

Well, I`m here again. Hope someone can help me with this issue. And sorry my bad English. I am in Brazil.

I use LimeSurvey 2.05+ Build 140302.

I have a list radio question with 3 answers: 1 - aaaa, 2 - bbbb and 3 - NoAnswer. Just options 1 and 2 must be randomized. Option 3 should be fixed at the end. But I don't want NoAnswer in all my questions, so I set to "No" the specific option in General Settings.

Searching LimeSurvey Manual, I found two Workarounds with suggested scripts to do exactly what I need. I followed all the instructions, modifying the variables filterxsshtml to FALSE and shownoanswer to 0 in config.php, as stated, set the correct IDs in JavaScript, saved it in the source of the question, but nothing worked. All the answers were randomized.

What should I do? Can anyone help me? Keep in mind, fellows, that I'm not an IT professional. I'm a research specialist, very curious and darting in the mazes of coding.

Here are the Workarounds:

Partially Randomized Answers - Multiple Options & List (radio) questions - ENHANCED </br>
Partially Randomized Answers - Multiple Options & List (radio) questions

The scripts, with my sID, gID and qID. None worked, tested with Chrome, IE 9 and Firefox 20:

File Attachment:

File Name: PartiallyR...ions.txt
File Size:1 KB


File Attachment:

File Name: PartiallyR...NCED.txt
File Size:2 KB


Thanks.

Helvio Brito.
  • DenisChenu
  • DenisChenu's Avatar
11 Mar 2014 14:34 - 11 Mar 2014 14:35
Replied by DenisChenu on topic web speech api
2 minute in google and :

The x-webkit-speech attribute can be used on any HTML5 input element with a type of text, number, tel, or search. Unfortunately, it’s not permitted on textarea fields. I suspect that’s to stop people using it for long dictations which could result in inaccurate results or high memory usage.

  • holch
  • holch's Avatar
10 Mar 2014 02:14
You can do this with Limesurvey, but you will need to create the "popup" (I assume it is actually a layer, as selfopening popups are generally blocked by browsers nowadays) yourself with HTML, CSS and Javascript. But you should find a bunch of tutorials on the internet on how to create such a layer.
  • DenisChenu
  • DenisChenu's Avatar
03 Mar 2014 18:56 - 03 Mar 2014 18:58
Yes, no quote.

BUT : you can not set default value in the same page : this need to be on different page. Because : EM in same page update HTML, and can not updated .

But here, because you have dfault value in QY, you can use:
Code:
{if(1==1,QY.NAOK,QZ.NAOK)}
But, if you do:
Code:
{if(QY.NAOK>1,QY.NAOK,QZ.NAOK)}
The response are prefilled by 24 and not 48 : because when page start : QY.NAOK is empty.

if you use 'QY.NAOK' or "QY.NAOK" : EM don't appply here.
The remove the quote , and it's OK.
  • DenisChenu
  • DenisChenu's Avatar
28 Feb 2014 11:00
Replied by DenisChenu on topic Adding an image with EM does not work?
If the question is in the same grpup (the same page) then it was updated each time user select another answer. Then it need the <span> .

Think best is to use something like that:
Code:
<img id="img1" src="" /><div id="srcimg1" style="display:none">{imageList_SQ001.code}</div>
<script>
$(function() {
$("#img1").attr('src','/limeSurvey/upload/surveys/123456/images/'+$("#srcimg1").text());
});
$("#question{imageList_SQ001.qid} input.radio").click(function(){
$("#img1").attr('src','/limeSurvey/upload/surveys/123456/images/'+$("#srcimg1").text());
});
</script>
Maybe some fix to do.

Denis
  • tpartner
  • tpartner's Avatar
27 Feb 2014 13:44 - 27 Feb 2014 13:48
Replied by tpartner on topic connecting surveys

...apparently it isn't possible to use images in the Limesurvey version...

The IAT workaround will work with images if you make one small change.

Place images in your array sub-questions and then, in template.js, change both instances of this:
Code:
$('div.iatWord', thisQuestion).text($('.subquestion-list.unanswered:first .answertext', thisQuestion).text());

To this:
Code:
$('div.iatWord', thisQuestion).html($('.subquestion-list.unanswered:first .answertext', thisQuestion).html());

Here is a working template and survey.

File Attachment:

File Name: Demo_IAT_C...ages.zip
File Size:76 KB

File Attachment:

File Name: limesurvey...2945.lss
File Size:18 KB




.
  • orvil
  • orvil's Avatar
26 Feb 2014 20:00 - 26 Feb 2014 20:04
Hi all,

currently I'm trying to add an image into a question text by using the EM.

The question text in plain html is like this:
Code:
<p>Have you seen this person recently? </p>
<p><img src="/limeSurvey/upload/surveys/123456/images/{imageList_SQ001.code}" /></p>

unfortunately the result for the image link in the question is like this:
Code:
https://www.mydomain.com/limeSurvey3/upload/surveys/123456/images/%3Cspan%20id=%27LEMtailor_Q_107_316%27%3Epicture1.jpg%3C/span%3E

- The image itself is uploaded jet, of course :)
- the expressin {imageList_SQ001.code)} standalone leads to the proper filename

Any ideas how to avoid encoding of the image-file?????
  • xemilien
  • xemilien's Avatar
23 Feb 2014 21:49 - 23 Feb 2014 21:54
Hey there,

the question has appeared 2 times in the search (1x in en & 1x in ger) but without response. So I trust on my luck and hope someone out there knows an answer.
The way the video is implemented does not matter (YouTube, Flash, HTML5) but a short workaround would be tremendous.

I would highly appreciate it. Thanks
  • emimarz
  • emimarz's Avatar
19 Feb 2014 20:31
Replied by emimarz on topic Additional Email Templates
what did you mean, Gorcarkaion?

if I don't wrong when you edit the templates of all emails the editor have a button "view source HTML" or something like that and there you can put your own skin, that is you want, isn't it?

Kindest regards
Emiliano
  • emimarz
  • emimarz's Avatar
19 Feb 2014 20:20
do no exist a non-javascript solution

I tell you why

Do click is an event that occurs on the client side on the client PC

Javascript is a client-side scripting language

He is the only one that can interact with the user because HTML is too poor

:woohoo: :woohoo: :woohoo:
too much coffee

Best
Emiliano
Displaying 4771 - 4785 out of 4949 results.

Lime-years ahead

Online-surveys for every purse and purpose