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

Comments in text boxes read and commented on by future survey participants - by: tpartner

$
0
0
There is nowhere in the LS code to add it. The only option I can think of would be to make an AJAX call to a remote PHP script that queries the database directly.

Getting Assessment Results Without Message to User - by: tpartner

$
0
0
If you want to manipulate the question (like generating a score), it's recommended to hide it with a CSS Class "hidden" instead of the question setting.

Freeze a text field once it's been answered/saved - by: mascarpone

$
0
0
Great will try that, thanks a lot tpartner!

How to remove logo and exit & clear - by: LouisGac

I'm not using the correct syntax. - by: moisespaivaspi

$
0
0
Good Morning.
With the "shown" it working :cheer: .

However there is a value that it does not present.
For example:
Is there a way to fetch and display the text of the "other" option?

Because if I select the "other" option and type text in that option, the final report just shows me a "- oth -" generic text.

Thank you in advance for your patience and help.
Best regards.

Wrongly made questionnaire anonymous - by: Jerryphan

$
0
0
I also like you, my English is quite poor looking to find a whole heart to learn knowledge.

LimeSurvey add_participants via Talend and Java - by: RobVor

$
0
0
Hi All,

New here and learning about LSRC2 and its pitfalls.

I have been given a few projects to automate a lot of our surveys and retrieval of response etc.

Recently, I have been asked to load participants and send invitations for a new project that we are starting. The reason it needs to be automated is that the client will be dumping the data twice daily and although they gave us times, we know well enough that this isn't how things always work.

Now, I have everything from the monitoring of the specific FTP site to the prepping and cleaning of the data all in order, but cannot get the 'post' to work at all.

I am using Talend Studio to manage this, not that I think it makes that much of a difference. I am able to get the session key, list survey questions etc. So I know it works.

The setup is as follows:

- A tRest component is loaded and set to:

"content-type" : "application/json"
"connection" : "Keep-Alive"
"content-length" : "67"
"user-agent" : "Apache-HttpClient/4.2.2 (java 1.5)"

The body then contains one line:

((String)globalMap.get("Participants"))

This calls the Java variable used to store the whole construct.


The the java component that builds the construct is:

String AddParticipants = "{\"method\":\"add_participants\",\"params\":[\""+(String)globalMap.get("SessionKey")+"\",\"398747\",\"["+((String)globalMap.get("output"))+"]\"],\"id\":\"1\"}";
globalMap.put("Participants", AddParticipants)

When I run the job I get:

{"method":"add_participants","params":["va2ij8euv3kc5ju5hh82vfuurfgap5uv","398747","[{"firstname":"Bob","lastname":"Hope","email":"bob@gmail.com","emailstatus":"OK","attribute_2":"8000009876","attribute_3":"Bob Hope","attribute_4":"Yasmien","attribute_6":"28 January 2018","attribute_9":"Refreshments","attribute_11":"AGG","attribute_12":"NMT 12345678","attribute_13":"NMT456987","attribute_14":"XYZ4569879","attribute_15":"ABC1325648"}]"],"id":"1"}

Which appears fine. (At least over the past day I have been breaking my brain a bit hahaha)

But the response is:

{"id":null,"result":null,"error":"unable to decode malformed json"}

Any help or pointers please?

BTW, I added the \"["+((String) and ))+"]\"]
^--- Bracket ^--- Bracket
Because I initially though that LSRC needed this to understand the array passed.

LimeSurvey add_participants via Talend and Java - by: RobVor

$
0
0
Never mind.

Character escaping and proper placing of the constructs works.

The fix is:

String AddParticipants = "{\"method\":\"add_participants\",\"params\":[\""+(String)globalMap.get("SessionKey")+"\",\"398747\",["+((String)globalMap.get("output"))+"]],\"id\":\"1\"}";

I'm not using the correct syntax. - by: moisespaivaspi

$
0
0
Many thanks :D

I'ts works.

Best regards.

Matrix where some subquestions got comments - by: McTell

$
0
0
Damn, it’s working now. Thanks!!

Participant exports his answers in pdf - by: VSSUNES

$
0
0
Hi

I would like it to be possible, that the survey participants directly print out their own answers at any point during the answering process. Right now I can only do it at the end.

Does anyone know whether or how this is possible?

It would also be useful, if the Look of the questions in the questionnaire was preserved.

Not-so-random assignment to conditions - by: tpartner

$
0
0
I don't understand the use of floor().

How about this:
{if(st1.NAOK==3 || st1.NAOK==4 || st4_2.NAOK >= 1, 1, rand(1, 2))}

That should return 1 if st1.NAOK==3 OR st1.NAOK==4 OR st4_2.NAOK >= 1. Otherwise it will return a random number 1 or 2.

Getting Assessment Results Without Message to User - by: tpartner

$
0
0
As previously stated, {TOTAL} is not loaded into the data so you need to create your own "score" in an equation type question.

In the attached survey, I have 3 list-radio questions with answer codes 1-5.

Those are followed by an equation question with code "score". In that equation question I load a score like this:

{sum(Q1, Q2, Q3)}

This question is hidden with a CSS class (you don't need CSS skills for that) - see screenshot below.

Then, you can simply use this placeholder in the email template to include the score:

{score}



Sample survey attached:

File Attachment:

File Name: limesurvey_survey_214844_2018-01-30.lss
File Size: 36 KB

How to remove logo and exit & clear - by: LouisGac

$
0
0
that could be a good option to add to the general settings of a survey...

For now, you can remove the link from the theme itself:

1. Extends vanilla or fruity
2. In theme editor, open the file "nav_bar.twig"
3. Delete the line:
{{ include('./subviews/navigation/clearall_links.twig') }}
4. save

How to pick x random questions from a bucket of y - by: tpartner


Not-so-random assignment to conditions - by: jelo

$
0
0

tpartner wrote: I don't understand the use of floor()

Typical rand routines in many programming-languages are not returning whole numbers.
Not the issue with php rand(), which is returning integer.

Other reason was the distribution of random number between two numbers.
The typical concept often used than was this:
FLOOR((RAND() * (max-min+1))+min)

In the old days the random routines where not that random.
PHP 7.X has changed the underlaying routine.

Compare notes in this bugticket:
bugs.limesurvey.org/view.php?id=12248

How to pick x random questions from a bucket of y - by: holch

$
0
0
If that instruction doesn't work: Upload what you have done as an example (please only these two question groups that are relevant for this issue).

Much better for the helpers if you do an upload of your problem, rather than us to create an example and upload. We do this all in our spare time and the easier you make it for us to help you, the better.

Anonymous withdrawal of submission to a survey - by: LouisGac

$
0
0
<troll>
Ethics Committees without solid scientific or technical skills will just take non sense decisions.
Not being good at math should not be considerate as a requirement to study philosophy and ethic.
</troll>

Anonymous withdrawal of submission to a survey - by: holch

$
0
0
I never use this function, but the option save and resume should allow something like that.

This might be something you want to look at.
manual.limesurvey.org/Data_management

--> Participant may save and resume later:

I don't know how it works in the backend and what is stored about the respondent and where, but it says it can be used in case of anonymous surveys.

But I am sure there must be some connection established between respondent and results as well.

Equation question to populate Yes/No question for Quota - by: blocka

$
0
0
I have two questions that I need to evaluate and based on that evaluation, I'm using an Equation type question to assign the result to a Yes/No question type so that I can use the Yes/No question in a Quota to early terminate a survey.

I have everything setup correctly, in that I can confirm in the Response table that the Yes/No question is being populated correctly.... But...

The Quota doesn't work though -- it is set up to check the Yes/No question, but when the response is "No", which should trigger the Quota, instead the participant isn't early-terminated.

I've attached the LSA of my survey so you can see it in action... I imagine it must be something quite simple, I just can't see it myself!

I'm using LS build #171219 (2.73)
Viewing all 17529 articles
Browse latest View live


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