Welcome to the LimeSurvey Community Forum

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

Accessing endURL

  • labean0103
  • labean0103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 week ago - 2 years 1 week ago #236482 by labean0103
Accessing endURL was created by labean0103
LimeSurvey version: 5.4.14+221205
==================
Hello!
I would like to know, if it is possible to access the endURL field and edit it inside a plugin. Basically, I am thinking about creating a plugin, that generates the endURL based on user response. How can I access the endURL in my code? Can I get it the same way as this:
Code:
$event      = $this->getEvent(); $surveyId   = $event->get('surveyId');

and what are these surveyId/responseId? Where does the plugin take them from? 
Last edit: 2 years 1 week ago by labean0103.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago #236483 by holch
Replied by holch on topic Accessing endURL
You can adapt the endurl via expression manager. You can for example use a hidden equation type question that defines, based on previous answers what the end URL will be. Now, if it needs to be in a Plugin, I can't help.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose