Welcome to the LimeSurvey Community Forum

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

pdfReport HowTo

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 months 2 days ago #269055 by DenisChenu
Replied by DenisChenu on topic pdfReport HowTo
gitlab.com/SondagesPro/TokenManagement/updateTokenByResponse

Else : when you want : you can send me offer to create README.md and manual and tips on extensions.sondages.pro/ :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Joffm

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #269324 by jparis
Replied by jparis on topic pdfReport HowTo
Hi again,

Thank you all for your support, awesome. I has been out of the city several days and now I'm ready to battle LS again.
I was reading and rereading all the ExpressionScript stuff and will begin with my task of using all your advices today but I was making several test with ExpressionScript and didn't found a thing I need, I begin the survey with a Bootstrap Buttons question (could be another kind of question, but I liked this one) with several buttons labeled 1, 2, 3 and so for the user to select which test he want to do, my colleagues plan to develop several test and the student could try any of them but they want to hide several test to certain students (I'll do that using an extra attribute to know which test to hide for each student) but I can't find how to modify the answers, many options about questions but can't find how to do that, is it possible?

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago #269327 by Joffm
Replied by Joffm on topic pdfReport HowTo
What is "modify the answers"?

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago - 3 months 2 weeks ago #269329 by jparis
Replied by jparis on topic pdfReport HowTo
Hi Joffm,

As I told I need to have sevaral test under the same token and the student be able to choose which test to do.
I setup a first question "¿Which test do you want to do?" of the kind "Bootstrap Buttons" and already did the trick using one question group for each test and hiding all the groups except the one the student choose.

 

Now I need to hide one button or more due to a number we'll setup in an extra attribute field in the participant database. If you have a "1" in that field you won't see the button labeled 1, if you have a "2" you won't see the buttons 1 and 2 and so on. I think I'm able to elaborate the logic in ExpressionScript but can't find how to hide that buttons, and due to these buttons being the answers to the main question, my phrase of "modify the answers"...
 
Last edit: 3 months 2 weeks ago by jparis.

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #269332 by jparis
Replied by jparis on topic pdfReport HowTo

gitlab.com/SondagesPro/TokenManagement/updateTokenByResponse

Else : when you want : you can send me offer to create README.md and manual and tips on extensions.sondages.pro/ :)
 
Didn't got you right... You need me to create that translated to spanish?
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago - 3 months 2 weeks ago #269344 by Joffm
Replied by Joffm on topic pdfReport HowTo
Hi,
As far as I remember you started this thread with something like "How to store and display previous results of a test".
And the topic was "pdfReport HowTo"
But now this seems to be something quite different.
Nothing about pdfReport, nothing about the results of the test.
Please "New topic - new thread"

So you want to let the participant choose a test and when he opens the survey the next time this already completed test isn't available anymore.

This you also do with the already mentioned plugin.
As bootstrap buttons are "single punch" questions, - and these question types do not support conditions it's a bvit tricky.

Send the lxss export of your survey.( only the relevant questions)

And:

You need me to create that translated to spanish?

What makes you think this?
Denis only showed the link to the plugin. and offered help.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 months 2 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago - 3 months 2 weeks ago #269352 by Joffm
Replied by Joffm on topic pdfReport HowTo
Hi,
here an idea:
  • Create an additional attribute.
  • Create a (hidden) multiple question (HM) with the same codes as your bootstrap buttons (here 1,2,3,...).
  • Preset this question by an (hidden) equation like
    {HM_1=if(strpos(TOKEN:ATTRIBUTE_1,'1')>0,"Y","")}
    {HM_2=if(strpos(TOKEN:ATTRIBUTE_1,'2')>0,"Y","")}
    {HM_3=if(strpos(TOKEN:ATTRIBUTE_1,'3')>0,"Y","")}
    ...
  • Use this multiple question as array exclusion filter in your bootstrap question.
  • At the end use "updateTokenByResponse" to get a comma separated string with the already selected buttons
 

 



Beware: If you have more than 9 tests, you have to adapt this to handle two gigit numbers.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 months 2 weeks ago by Joffm.

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago - 3 months 2 weeks ago #269356 by jparis
Replied by jparis on topic pdfReport HowTo

As far as I remember you started this thread with something like "How to store and display previous results of a test".
And the topic was "pdfReport HowTo"
But now this seems to be something quite different.
Nothing about pdfReport, nothing about the results of the test.
Please "New topic - new thread"


Oh!, my fault, sorry about that, just seemed to me that open new threads for different questions related to the same projecto would be worst that maintain all related stuff in this one. I'll follow your instructions next time.

So you want to let the participant choose a test and when he opens the survey the next time this already completed test isn't available anymore.


No exactly, all I need is the participant to see only the "allowed" test for him, I would use an extra attribute on the participants list with the lower test he can take, example: if you have '3' in the attribute you can take test number 3 and 4 and 5 and so on but you can't access test s1 and 2.

As bootstrap buttons are "single punch" questions, - and these question types do not support conditions it's a bvit tricky.


I can use any other option, I choose this kind of question as it liked to me but any other one that do the job will be fine.

Send the lxss export of your survey.( only the relevant questions)


I'll do when more elaborated, first I want to try, test and play with ExpressionScript to learn more about it.

And:You need me to create that translated to spanish?What makes you think this?
Denis only showed the link to the plugin. and offered help.


Denis wrote "Else : when you want : you can send me offer to create README.md and manual and tips on extensions.sondages.pro/ :)" and I understood "send me offer to" like he would like me to do something (something that I would kindly do) for him.
So sorry, was like the movie... Lost in translation... forget it.

Paris
Last edit: 3 months 2 weeks ago by jparis. Reason: Looked blocky

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #269358 by jparis
Replied by jparis on topic pdfReport HowTo

Hi,
here an idea:
  • Create an additional attribute.
  • Create a (hidden) multiple question (HM) with the same codes as your bootstrap buttons (here 1,2,3,...).
  • Preset this question by an (hidden) equation like
    {HM_1=if(strpos(TOKEN:ATTRIBUTE_1,'1')>0,"Y","")}
    {HM_2=if(strpos(TOKEN:ATTRIBUTE_1,'2')>0,"Y","")}
    {HM_3=if(strpos(TOKEN:ATTRIBUTE_1,'3')>0,"Y","")}
    ...
  • Use this multiple question as array exclusion filter in your bootstrap question.
  • At the end use "updateTokenByResponse" to get a comma separated string with the already selected buttons

Uau!!!!
As I said in the previous reply this is not exactly what I need but the idea is more or less the same thing I was thinking but don't need to save anything only check the attribute to see which test are available for this student, if the attribute is '1' the student can access all tests and all the times required, any of them. If the attribute is '2' he can take all tests but test 1, all the times wanted, all of them but never test 1.

I need some time to digest your proposal but should be pretty easy to convert it to my needs...

You gave me homework for this night! 

Paris

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago - 3 months 2 weeks ago #269359 by Joffm
Replied by Joffm on topic pdfReport HowTo

just seemed to me that open new threads for different questions related to the same projecto would be worst that maintain all related stuff in this one.

Oh, no,
I never wonder that I read so many times "I searched the forum, but did not find".
Which user will expect something about additional attributes and this special plugin in a thread titled "pdfReport How To"?

And: This forum is not a dialogue.
We expect all users to search and read all other threads, download and import provided sample surveys to find a solution by themselves.
And we hope that more of the user contribute to the forum sharing their ideas, knowledge, and solutions.
It's a forum "users help users". And it's a pity that there are only about 10 active users who spend their spare time to try to help others, to answer questions, to create solutions.
And so many things are asked and explained many, many times, over and over again.

Why?
1. Because of such bad and misleading headers
2. Because it is easier to ask a question then to search the forum or even to read the manual..


Anyway:

No exactly, all I need is the participant to see only the "allowed" test for him,

This is only a little independent additional requirement that doesn'tg interfere with the rest.
You only have to adapt the preset of the (hidden) multiple question.

I showed the solution.
So create a small prototype where you try and if there are questions, provide the lss export of this survey.

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 months 2 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • jparis
  • jparis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #269360 by jparis
Replied by jparis on topic pdfReport HowTo

just seemed to me that open new threads for different questions related to the same projecto would be worst that maintain all related stuff in this one.

Oh, no,
I never wonder that I read so many times "I searched the forum, but did not find".
Which user will expect something about additional attributes and this special plugin in a thread titled "pdfReport How To"?

And: This forum is not a dialogue.
We expect all users to search and read all other threads, download and import provided sample surveys to find a solution by themselves.
And we hope that more of the user contribute to the forum sharing their ideas, knowledge, and solutions.
It's a forum "users help users". And it's a pity that there are only about 10 active users who spend their spare time to try to help others, to answer questions, to create solutions.
And so many things are asked and explained many, many times, over and over again.

Why?
1. Because of such bad and misleading headers
2. Because it is easier to ask a question then to search the forum or even to read the manual..

 
You're absolutely right. In one of the first post I apologized for have not read the manual and now I read it and continue needing help, like the one you gave me that I'll never could appreciate enought.

Anyway:No exactly, all I need is the participant to see only the "allowed" test for him,This is only a little independent additional requirement that doesn'tg interfere with the rest.
You only have to adapt the preset of the (hidden) multiple question.

I showed the solution.
So create a small prototype where you try and if there are questions, provide the lss export of this survey.

That's what I'm trying to do, I granted you for your GREAT help and replied that I'll work on your solution to adapt it to my needs and will post the survey once it's ready to be seen. I want to reach the goal for myself, as always do, it's the only way to learn.

I understand your frustation as anybody can see in the forum (don't think that I don't read and search the forum, I do it often) that you and a handful of users reply all the questions and give all the advices and tips. In my first approach to LS years ago I searched a lot in the forum and find enought to do my stuff without doing a single question, this is my normal behaviour in the forums, search a read. In this particular case I face now I couldn't find what I was looking for and dared to make a question and found your (and Denis) welcome and priceless help, I apologize again about not making separate threads for my doubts and, as it comes from your words, bother you both more than necessary.

Thank you again!

Paris

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 2 weeks ago - 3 months 2 weeks ago #269365 by DenisChenu
Replied by DenisChenu on topic pdfReport HowTo

gitlab.com/SondagesPro/TokenManagement/updateTokenByResponse

Else : when you want : you can send me offer to create README.md and manual and tips on extensions.sondages.pro/ :)


 
Didn't got you right... You need me to create that translated to spanish?


 
No,
This sentence is for @Joffm, sinc he know a lot LimeSurvey and plugins. He would be the best person to write my documentation. It's more a joke than anything else . But if one day he wants to do it, I'll find a nice present for him.

Edit : else : when the topic go elsewhere ? Need to be cut in 2 parts ? joffm is absolutely right in pointing out that each subject should be separate, it's not your topic: it's the topic on this subject.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 3 months 2 weeks ago by DenisChenu.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose