Welcome to the LimeSurvey Community Forum

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

How do I show the survey instead of survey list?

  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #180653 by arunicbe
Limesurvey by default shows a survey list when you visit the website.

I would like to show a survey directly instead of the survey list.

Is this possible?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180658 by tpartner
Extend your theme and modify layout_survey_list.twig.

- manual.limesurvey.org/New_Template_System_in_LS3.x

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: arunicbe
The topic has been locked.
  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #180682 by arunicbe
So I extended a theme, made this theme as default theme.

I remove the html code from layout_survey_list.twig and wrote javascript window.location to redirect to the desired survey.

Hope this is the right way to do.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180698 by tpartner
You may also want to leave an HTML link to the survey in case the JavaScript fails - "If you are not redirected within 30 seconds, click on this link..."

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose