Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Dropdown in Multiple short text

Dropdown in Multiple short text 3 years 3 months ago #95283

  • ricardo
  • ricardo's Avatar
  • Offline
  • Expert Lime
  • Posts: 117
  • Thank you received: 1
  • Karma: 0
Thanks, it worked...are you talking about this line?




I thought java scripts were immune to that?

cheers,

ricardo
The administrator has disabled public write access.

Dropdown in Multiple short text 3 years 3 months ago #95297

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6134
  • Thank you received: 1363
  • Karma: 535
...are you talking about this line?
Yes.

I thought java scripts were immune to that?
Not when you have a variable (string) which spans several lines. In that case, every line must end with a backslash character '\'. You could put the whole string on one line but it would be kinda hard to read.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 3 months ago by tpartner.
The administrator has disabled public write access.

Dropdown in Multiple short text 3 years 3 months ago #95300

  • ricardo
  • ricardo's Avatar
  • Offline
  • Expert Lime
  • Posts: 117
  • Thank you received: 1
  • Karma: 0
Thanks, Tony.
The administrator has disabled public write access.

Dropdown in Multiple short text 3 years 3 months ago #95322

  • Limer2001
  • Limer2001's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
Can you (Ricardo,Tony?) post a limesurvey question file or survey file of this working. I can't get it to work.
Last Edit: 3 years 3 months ago by Limer2001.
The administrator has disabled public write access.

Dropdown in Multiple short text 3 years 3 months ago #95324

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6134
  • Thank you received: 1363
  • Karma: 535
Here you go. For portability, in this test survey I replaced the question ID (9334) with the {QID} placeholder.

File Attachment:

File Name: limesurvey...9411.lss
File Size:16 KB
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Dropdown in Multiple short text 3 years 3 months ago #95330

  • Limer2001
  • Limer2001's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
Thank you so much. With the QID placeholder it's working!
The administrator has disabled public write access.

Dropdown in Multiple short text 8 months 3 weeks ago #128124

  • petergi
  • petergi's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hi all,
the solution presented by tpartner is going into the direction I am looking for, i.e. embedding drop downs into possible answers. However, what I need is to place the drop down not at the end of an answer but rather somewhere in the sentence.
Example:

'I am looking for <dropdown> a / the </dropdown> solution.'

The user then has to select his answer only through the drop down.

Any hint for a solution is greatly appreciated.

Thanks
Peter
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.218 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form