Check out the LimeSurvey source code on GitHub!

Survey for Student Schedule (list of registered courses)

More
5 years 2 months ago #70466 by ogursoy
I am looking for a solution in order to set up a student survey as the following:

Survey questions are targeting the courses that the students registered.

Is there any way to use tokens in order to alter array questions (with a list of courses student registered)?

Thank you.

Please Log in to join the conversation.

More
5 years 2 months ago #70472 by tpartner
Hi ogursoy (og_).

You cannot directly alter the questions - all questions, labels and sub-questions/answers must be defined before activating the survey.

However, if you are using tokens, you can:
- Set a custom attribute with the student's course(s)
- Create a multiple-options question with all possible courses
- Hide this question with CSS or JavaScript
- Use a {TOKEN:ATTRIBUTE_1} placeholder and JavaScript to get the custom attribute value(s) and check the appropriate options
- Use array filters to show only the appropriate array rows in following questions

Alternatively, you could have a whole mess of array questions and use conditions to hide/show them depending on the custom attribute.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ogursoy

Please Log in to join the conversation.

More
5 years 2 months ago #70474 by ogursoy
Thank you very much. One more question, since the number of registered courses per students varies, do you think that might cause a problem in your solution(s)?

Please Log in to join the conversation.

More
5 years 2 months ago #70475 by tpartner
Nope. The multiple-options and the arrays will have sub-questions for all possible courses but only those that the student took would be shown.

So the engineering majors would have 8 courses and the arts majors would have 3 :laugh:

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 2 months ago #70476 by ogursoy
:) Thank you Tony, I appreciate your help very much. What you are doing within this community is really great. If I dont bother you, how can I bind instructor information to each courses? Namely, I also want to have reports based on instructors? :D cheers.

Please Log in to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #70477 by tpartner
It seems to me that the course names wouldn't change depending on instructor so that wouldn't affect what we've discussed to now.

I would add more custom tokens with the instructors and then use javaScript to load hidden questions with those values.

You can also export the token values with the survey data.

I should point out that all of these token solutions are conditional on your survey being non-anonymous. If the survey is set to anonymous there is no connection to the token table.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 2 months ago by tpartner.

Please Log in to join the conversation.

More
5 years 2 months ago #70478 by ogursoy
yes, I have noticed what you have emphasized recently regarding token table. I am fresh in lime. I wonder how other universities implementing similar scenarios. Thanks ,Tony.
Regards

Please Log in to join the conversation.

More
5 years 2 months ago #70479 by ogursoy
Also where can find (if possible) ER diagram of the whole lime project?

Please Log in to join the conversation.

More
5 years 2 months ago #70482 by tpartner
I'm not sure where or if there is an ER diagram. Maybe try to find c_schmitz in on the IR channel and ask him.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 2 months ago #70483 by tpartner
Oh, and please post the link back here if you find one so others can find it in a search.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 2 months ago #70505 by Mazi
An ER diagram doesn't exist. All we can offer is an outdated database layout: docs.limesurvey.org/LimeSurvey+1.8+datab...meSurvey+development


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 2 months ago #70524 by ogursoy
If you dont mind I will go for reverse engineering and get a er diagram if all DB is well formed with constraints and well defined keys. :)

I appreaciate your help very much. Thanks.
Cheers

Please Log in to join the conversation.

More
5 years 2 months ago #70533 by Mazi
If you create an ER-diagramm please share it here later so we can add it at our wiki.

Thanks!


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 2 months ago #70553 by ogursoy
Here is the file to download:
click

Thumb :D :

Attachments:

Please Log in to join the conversation.

More
5 years 2 months ago #70555 by ogursoy
FUI The above link will vanish tomorrow.
Cheers.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form