0 votes
in SoSci Survey (English) by s287998 (110 points)

Dear SoSci Survey manager,

Hello,
I have a few questions about the slider in SoSci Survey.

Firstly, the custom slider I added is not visible in languages other than the default (English).
The basic slider design provided by SoSci Survey is not suitable for our survey, so I’ve created a longer line slider named 'slider_English'. However, when I switch to another language, such as French, an error occurs with 'slider_French'.
How can I resolve this issue?

Secondly, we are currently addressing this issue by creating three identical slider questions in English and using a PHP function to display them according to the selected language. However, the problem is that we want to present the questionnaire in our survey randomly, but due to the PHP code we are using, we have to ensure that a certain page always follows the slider.
Can you modify my code so that the questions can appear randomly?

If you have any ideas, please let me know.

Sincerely,

if (getLanguage() == 'fre') {
setLanguage('eng');
question('WN64');
setNextPage('PG03') == setLanguage('fre');
} elseif (getLanguage() == 'ger') {
setLanguage('eng');
question('WN65');
setNextPage('PG03') == setLanguage('ger');
} else {
question('WN68');
}

1 Answer

0 votes
by SoSci Survey (320k points)

I’ve created a longer line slider named 'slider_English'. However, when I switch to another language, such as French, an error occurs with 'slider_French'.

Usually, SoSci Survey should use the graphics from the base language, if no other image is selected in another language. Please switch to another editing language in the orange bar on the top, and check what slider is selected in the French version.

Can you modify my code so that the questions can appear randomly?

Ideally, this question needs no answer any more. But for the sake of completeness: Try not to jump between pages. Just very the question that is shown:

if (getLanguage() == 'fre') {
    setLanguage('eng');
    question('WN64');
    setLanguage('fre');
} elseif (getLanguage() == 'ger') {
    setLanguage('eng');
    question('WN65');
    setLanguage('ger');
} else {
    question('WN68');
}

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...