Welcome to the LimeSurvey Community Forum

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

Have the assessment done externally and imported into Survey

  • gaartsen
  • gaartsen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171607 by gaartsen
Hi,
I am building a survey with several sections of questions. One particular section will need to be assessed by an external agency. They have an API that would take answers of hat section and perform their custom assessment. That same API can return the assessment as well.
  1. Is there a way this can be done by Lime Survey?
  2. Is there a way to import this as a separate survey into another survey?
  3. Is there a way at all to assess any survey externally?


Thanks in advance.
Gary
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 years 8 months ago #171616 by tammo
The short answer is: Yes, this can be done. But it will take some programming.

It would take a brainstorm to get all specifications on the table, after that a project plan can be made.

The other short answer is: No, it cannot be done by LimeSurvey out of the box.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • gaartsen
  • gaartsen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171617 by gaartsen
Thank you Tammo.
I am a PHP programmer, so I could have a quick look. Any pointers to relevant classes etc would be helpful.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 years 8 months ago #171618 by tammo
I guess I would start using the Remote Control API: manual.limesurvey.org/RemoteControl_2_API
which could make the part that needs assessing available for the other API of the assessing organization.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: gaartsen
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171645 by DenisChenu
I think : LimeSurvey must send information to external API, and get this information in Survey, right ?

Then : seems best to use LimeSurvey plugin.

If the update of the survey with the value of API can be done after survey is submitted : use manual.limesurvey.org/AfterSurveyComplete
If the update of the survey must be done during survey : best seems to use beforeQuestionRender : manual.limesurvey.org/BeforeQuestionRender

Idea example :
1. create a short text question, hidden to get the value of the API
2. in beforeQuestionRender : test the gid value
3. If the gid value is the same than your 1st question : send request to the API with params and fill the value

You need to use Response model (or SurveyDynamic) : github.com/LimeSurvey/LimeSurvey/blob/ma.../models/Response.php

You can copy some code from gitlab.com/SondagesPro/ExportAndStats/ge...Question/tree/master

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: gaartsen
The topic has been locked.
  • gaartsen
  • gaartsen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171664 by gaartsen
Thank you again. I will have a look.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose