0 votes
in Methoden-Fragen by s304603 (130 points)

I have a text input question B301, including many items. Is it possible to set the width based on a specific condition?

For example something like:

if (!empty($phase)) {

    replace("~", "B301_1",  "width"); // Replace placeholder with phase title
}

Where $phase depends on the answer of a previous question

1 Answer

0 votes
by SoSci Survey (338k points)

The size of text inputs cannot be adjusted via HTML code.

However, you can prepare multiple text inputs with varying sizes, and use PHP code tzo display the fitting one.

Or, you can also use JavaScript code, to adjust the size when the page is loaded.

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

...