Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: template)

  • peppermintss
  • peppermintss's Avatar
19 Jun 2023 18:54
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template: 5.6.16
==================
Hi I am not sure whether this is answered but I did not seem to find it. I would like to randomize questions in a question group and display another question directly after this previous question on a different page based on the conditional response chosen in the previous question. What are the settings I should use or ways to do this (no CSS etc codes please)?

Thank you!
  • mferraz
  • mferraz's Avatar
19 Jun 2023 17:36
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.1.4+230620
Own server or LimeSurvey hosting: own server
Survey theme/template: default
==================

Hi, I'm getting the following error on this installation. I've opted for PostgreSQL, and I'm getting the following when I try to create a new survey. The survey is created, but it's always generating the error. Getting the same when I activate the survey.SQL: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: ""
LINE 1: ...LECT * FROM "lime_question_l10ns" "t" WHERE qid = '' and lan...
Thank you in advance.
 
  • tpartner
  • tpartner's Avatar
19 Jun 2023 12:06
  • rhanzlova
  • rhanzlova's Avatar
19 Jun 2023 11:27
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.20+230516
Own server or LimeSurvey hosting: LimeSurvey CE
Survey theme/template:
==================
Good morning. I have survey that is anonymous. I wanted to ask if it is possible to specifically set the start (valid from) of the survey for individual respondents (tokens).

Specifically, if I send them a link to the survey, it won't let them in until the start date.

Thank you very much for the reply.
  • xevolic
  • xevolic's Avatar
19 Jun 2023 11:15
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.1.2 / 6.1.3 (master)
Own server or LimeSurvey hosting: own server
Survey theme/template: default
==================
We have used LimeSurvey for few years and wanted to upgrade it to the newest version: 6.1.2
Unfortunately we encountered problem with attaching files to survey's e-mail templates.

The problem exists on our web server with our database and even in local Docker version with demo records.
I tested LimeSurvey in Docker with PHP 8.2 and 7.4

For the demo purpose I had created new survey, which got id 275838, and then I went to link:
limesurvey-demo.loc/index.php/admin/emai...ndex/surveyid/275838

File manager loads correctly from time to time (see attached screenshots) in Firefox.
In Google Chrome it can cause tab crash.

Files can be successfully uploaded, but I cannot choose them and attach below the form (by double click or choosing Select from the context menu).

Have you experienced such strange behaviour?

I cannot see any errors in JavaScript console.
  • paulfiner
  • paulfiner's Avatar
18 Jun 2023 15:50
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.25.17
Own server or LimeSurvey hosting:Own
Survey theme/template:Fruity extended
==================

I'm using the pricingSliders question theme from TPartner but the main survey language is French and it doesn't show the subquestions as sliders.
I have used this question type before perfectly when the main language was English.
Is there anything else I need to do?

Thanks,
Paul
  • niobe92
  • niobe92's Avatar
17 Jun 2023 13:23
Please help us help you and fill where relevant:
Your LimeSurvey version: [not given, probably limited university version
Own server or LimeSurvey hosting:
Survey theme/template: fruity
==================
Dear friends,
for my university i have to create a self-assessment or self evaluation tool for e-tutors with limesurvey. I understand the logic of the EM and the general functionalities are working. But i also wanna give a visual statistical analysis (certain diagrams f.e.) for each user after the evaluation. As i understand it, i can let limesurvey create statistics for me as creator of a survey with all the participants, but not an individual one for each user after using the tool.

I now wanted to use streamlit with the csv of each user. For that i wanted to automatically let the data of the user get analysed by my streamlitserver and send a link to each user after his evaluation, so he can see his individual outcomes. So i dont need the general .csv of the total survey, but of each evaluation of the user. 

I dont have access to plugins or APIs (btw. also no custom.css etc.), i think that is because my LS version of the university is a limited one. I cannot find the version number, its not where i saw it in LS tutorial videos and i couldnt find it anywhere else, so unfortunately i cant tell you which version exactly im using. 
As i see it, my aspiration with streamlit is not possible with LS, at least not without access to APIs or Plugins. Am i right? Is it possible to get acces to individual results in a csv. file? Or is there any other way, how i could transfer the data to another platform to make more complex analyses of individual results?

Thank you very much

 
  • Città30
  • Città30's Avatar
17 Jun 2023 01:50
Problem with the sums per row was created by Città30
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi everyone. I think the pictures can clarify better than words what my problem is. Why doesn't sums per row work? How can I fix the problem? Furthermore,
there is a way to insert the thousands separator (dot nor comma)? Thanks
  • CinnamonFlopp
  • CinnamonFlopp's Avatar
16 Jun 2023 11:39
New images in theme was created by CinnamonFlopp
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
How exactly does the file system with added pictures work?  I figured out how to import a picture from a third-party cloud (Imgur) into the css file of the theme, but I would like to do everything directly. Can you suggest the correct line so that the picture uploaded to the topic could stand up, in my case, as the background of the survey?
That's how I did it now:
.simplex{background-image: url("[url] i.imgur.com/t2s5TWU.jpg%22 [/url]); }
.outerframe .container-md { background-image: url("[url] i.imgur.com/t2s5TWU.jpg%22 [/url]); }
  • rhanzlova
  • rhanzlova's Avatar
16 Jun 2023 11:15
Trouble with saving the times was created by rhanzlova
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.20+230516]
Own server or LimeSurvey hosting: LimeSurvey CE
Survey theme/template:
==================
I'd like to ask about the time statistics. When I have pre-imported answers in the survey for respondents, the times are not saved, neither in the overall survey nor on individual questions, although I have set the saving. I think the problem is that a nonsensical time is automatically set for the pre-imported answers. Is there any way to fix this?

I have closed-access research on my own servers.

Thank you very much for your answers.
  • mferraz
  • mferraz's Avatar
15 Jun 2023 18:52
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.1.3+230612 
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi

I'm trying to implement the following code to Authenticate users using Shibboleth like we used to do on version 3, but I'm getting the following error when I've tried to test the shibd user variable:PHP warningUndefined array key "eppn"/opt/limesurvey/plugins/AuthAAI/AuthAAI.php(20)08 public $allowedPublicMethods = array();
09
10 public function init()
11 {
12 // Registra os eventos que o plugin vai escutar
13 $this->subscribe('beforeLogin');
14 $this->subscribe('newUserSession');
15
16 }
17
18 public function beforeLogin()
19 {
20 echo $_SERVER;
21 // Verifica se a variável $_SERVER existe
22 if (isset($_SERVER)) {
23 // Usa a variável como username
24 $username = $_SERVER;
25 // Tenta encontrar o utilizador no banco de dados
26 $user = $this->api->getUserByName($username);
27 if ($user === null) {
28 // Se o utilizador não existe, cria um novo com permissão de participante
29 $user = new User;
30 $user->users_name = $username;
31 $user->password = hash('sha256', createPassword());
32 $user->full_name = $_SERVER;
Stack Trace#0 unknown(0): AuthAAI->beforeLogin()#1–
  /opt/limesurvey/application/libraries/PluginManager/PluginManager.php(269): call_user_func(array(AuthAAI, "beforeLogin"))264 if (
265 !$event->isStopped()
266 && (empty($target) || in_array(get_class($subscription[0]), $target))
267 ) {
268 $subscription[0]->setEvent($event);
269 call_user_func($subscription);
270 }
271 }
272 }
273
274 return $event;
#2–
  /opt/limesurvey/application/controllers/admin/Authentication.php(111): LimeSurvey\PluginManager\PluginManager->dispatchEvent(PluginEvent)106 // In Authdb, the plugin event "beforeLogin" checks if the url param "onepass" is set
107 // if yes, it will call AuthPluginBase::setAuthPlugin to set to true the plugin private parameter "_stop", so the form will not be displayed
108 // @see: application/core/plugins/Authdb/Authdb.php: function beforeLogin()
109 $beforeLogin = new PluginEvent('beforeLogin');
110 $beforeLogin->set('identity', new LSUserIdentity('', ''));
111 App()->getPluginManager()->dispatchEvent($beforeLogin);
112
113 /* @var $identity LSUserIdentity */
114 $identity = $beforeLogin->get('identity'); // Why here?
115
116 // If the plugin private parameter "_stop" is false and the login form has not been submitted: render the login form
#3–
  /opt/limesurvey/application/controllers/admin/Authentication.php(47): Authentication::prepareLogin()42 }
43 // The page should be shown only for non logged in users
44 $this->redirectIfLoggedIn();
45
46 // Result can be success, fail or data for template
47 $result = self::prepareLogin();
48
49 $isAjax = isset($_GET) && $_GET == 1;
50 $succeeded = isset($result[0]) && $result[0] == 'success';
51 $failed = isset($result[0]) && $result[0] == 'failed';
52
#4 unknown(0): Authentication->index()#5+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(Authentication, array())#6+
  /opt/limesurvey/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Authentication, ReflectionMethod, array("sa" => "login"))#7+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("sa" => "login"))#8+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(Authentication)#9+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Authentication, array())#10+
  /opt/limesurvey/application/controllers/AdminController.php(202): CController->run("authentication")#11+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run("authentication")#12+
  /opt/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/authentication/sa/login")#13+
  /opt/limesurvey/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()#14+
  /opt/limesurvey/index.php(161): CApplication->run()
This is the code:
<?php
// Plugin para autenticação federada shibboleth para o limesurvey
class AuthAAI extends AuthPluginBase
{
    protected $storage = 'DbStorage';
    static protected $description = 'Autenticação federada shibboleth';
    static protected $name = 'AuthAAI';
    public function init()
    {
        // Registra os eventos que o plugin vai escutar
        $this->subscribe('beforeLogin');
        $this->subscribe('newUserSession');

    }

    public function beforeLogin()
    {
    echo $_SERVER; //for testing
        // Verifica se a variável $_SERVER existe
        if (isset($_SERVER)) {
            // Usa a variável como username
            $username = $_SERVER;
            // Tenta encontrar o utilizador no banco de dados
            $user = $this->api->getUserByName($username);
            if ($user === null) {
                // Se o utilizador não existe, cria um novo com permissão de participante
                $user = new User;
                $user->users_name = $username;
                $user->password = hash('sha256', createPassword());
                $user->full_name = $_SERVER;
                $user->parent_id = 1;
                $user->lang = 'pt-PT';
                $user->email = $_SERVER;
                if ($user->save()) {
                    // Atribui a permissão de participante ao utilizador
                    Permission::model()->setGlobalPermission($user->uid, 'surveys', array('create_p'));
                    // Dispara o evento de novo utilizador
                    $this->getEvent()->set('newUser', true);
                } else {
                    // Se houver algum erro ao salvar o utilizador, mostra uma mensagem de erro
                    $this->getEvent()->set('error', 'Não foi possível criar o utilizador.');
                }
            }
            // Se o utilizador existe, autentica
            if ($user !== null) {
                // Dispara o evento de nova sessão de utilizador
        $this->setUsername($user);
                $this->setAuthSuccess($user);
            $this->setAuthPlugin(); // This plugin will handle authentication and skips the login form
            }
        } else {
            // Se a variável não existe, mostra uma mensagem de erro
            $this->getEvent()->set('error', 'Não foi possível obter a variável $_SERVER[\'eppn\'].');
        }
    }

    public function newUserSession()
    {
        // Obtém o utilizador autenticado
        $user = $this->getEvent()->get('user');
        if ($user !== null) {
            // Atualiza a última data de login do utilizador
            $user->setAttributes(array('last_login' => date('Y-m-d H:i:s')));
            $user->save();
        }
    }
}

I've tried the same echo, even with a function on the same Limesurvey parent directory, and I'm getting the variable just fine.

Thank you in advance.
  • equilibrium_21
  • equilibrium_21's Avatar
15 Jun 2023 14:45
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.25
Own server or LimeSurvey hosting: own
Survey theme/template: fruity theme
==================
Hi Forum,
I'm currently working on a survey where I want to make some calculations in expression script. In one variable, I'm applying a simple division, e.g.: Q1_SQ001/Q2_SQ001. Later, I wanted to sum this value to others, but the result was always 0. By using the is_string() function, I found out that Result of the Variable actually gets stored as a string. Does anyone know why this happens, or how to change this?
  • ReactyDigital
  • ReactyDigital's Avatar
14 Jun 2023 16:29
CPDB functions do not work properly was created by ReactyDigital
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.1.3
Own server or LimeSurvey hosting: Own
Survey theme/template: -
==================
Hi LS Community,

In LS 6.1.3 I found a bug/technical problem in CPDB. After creating custom attributes, I tried to import dummy participants with these custom attributes, but none of them appeared in the database.
Another problem is with the "Edit this participant" function. If I click to this button, nothing happens, even in the backlogs.

Are these malfuncitons the results of a fresh version? Or has anyone encountered anything like this? 

Thank you for your answers.

Best regards,
Bence
  • Rushla_429585
  • Rushla_429585's Avatar
14 Jun 2023 15:54
cellule liée was created by Rushla_429585
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Bonjour à tous et par avance merci
Je crée un questionnaire où je dois mettre lier une question avec une réponse en cascade du style
quel est votre âge ? l'interrogé répondra 50 et la cellule suivante sera liée avec la question 'quel est votre âge'
exemple quel est votre âge ? 50 ans --> alors une cellule apparaitra à côté et précisera automatiquement : vous appartenez donc à la tranche d'âge : 45-50 ans

je ne connais rien à limesurvey, j'ai cherché comment faire mais là je ne comprends pas comment résoudre ce problème
Merci par avance pour votre réponse
Bien cordialement à toutes et à tous
  • nonformality
  • nonformality's Avatar
14 Jun 2023 15:45
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.1.3+230612
Own server or LimeSurvey hosting: Own server
Survey theme/template: Fruity
==================
We have added a couple of missing translations to local .mo files, as described in the manual: manual.limesurvey.org/Translating_LimeSurvey while we wait for the translations to appear in future LS updates – and it works beautifully for 7 of the 8 languages for which we need it, but not for Serbian (Latin script). It is in the right folder /locale/sr-Latn and has the right name sr-Latn.mo, but LS does not pick up the additional translations. Our procedure of preparing and providing the local .mo file is exactlly the same as for the other seven.

Any educated guesses at what I am overlooking?
Displaying 1141 - 1155 out of 1222 results.

Lime-years ahead

Online-surveys for every purse and purpose