Welcome to the LimeSurvey Community Forum

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

Plugin Development

  • tania.migliorini
  • tania.migliorini's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 2 weeks ago #244986 by tania.migliorini
Plugin Development was created by tania.migliorini
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6
Own server or LimeSurvey hosting: server
Survey theme/template:
==================
Good morning, everyone,

I should develop a plugin that filters the list of participants in a survey according to the user who is logged in.

Does anyone know of the most convenient action or hook to make these changes and any advice in general ? (I have already managed to create and install the plugin on my local server but I need to develop it).

Thank you very much in advance

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 months 3 days ago #245167 by DenisChenu
Replied by DenisChenu on topic Plugin Development
participants : Global one or Survey specific ?


But for both : You must replace core system :

1. We don't have event for listing (Dev project for me)
2. We don't have Permision system on token.

It's clearly something where i don't create an offer here.

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.

Please Log in to join the conversation.

  • tania.migliorini
  • tania.migliorini's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 3 weeks ago #245455 by tania.migliorini
Replied by tania.migliorini on topic Plugin Development
It would be for a specific survey.
By modifying the core code, however, how could we then download platform updates?

It seems to me that the only solution to my problem is to create several equal surveys each with a different list of participants.

Thank you very much for your reply.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 3 weeks ago #245457 by DenisChenu
Replied by DenisChenu on topic Plugin Development

It seems to me that the only solution to my problem is to create several equal surveys each with a different list of participants.
 
It's the simpliest solution.

Else : you can have a look at gitlab.com/SondagesPro/managament/responseListAndManage and gitlab.com/SondagesPro/TokenManagement/TokenUsersListAndManage where you ca create User manager with token access only.

 

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.

Please Log in to join the conversation.

More
3 months 1 day ago #255013 by sheikhkhalid
Replied by sheikhkhalid on topic Plugin Development
To develop a plugin that filters survey participants based on the logged-in user, begin by identifying the authentication system used in your survey application. Look for hooks or events related to user authentication, such as the user_logged_in signal in frameworks like Django. Once authenticated, access user information, including a unique identifier like the user ID. Use this information to filter the list of survey participants, applying appropriate queries or filters to customize the view according to the logged-in user. Ensure your plugin integrates seamlessly with the existing structure of your survey application for a smooth user experience.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 1 day ago #255015 by DenisChenu
Replied by DenisChenu on topic Plugin Development
ChatGPT

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose