Dropdown in Multiple short text

More
4 years 2 months ago #95283 by ricardo01
ricardo01 replied the topic: Dropdown in Multiple short text
Thanks, it worked...are you talking about this line?




I thought java scripts were immune to that?

cheers,

ricardo
Attachments:

Please Log in to join the conversation.

More
4 years 2 months ago - 4 years 2 months ago #95297 by tpartner
tpartner replied the topic: Dropdown in Multiple short text

...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: 4 years 2 months ago by tpartner.

Please Log in to join the conversation.

More
4 years 2 months ago #95300 by ricardo01
ricardo01 replied the topic: Dropdown in Multiple short text
Thanks, Tony.

Please Log in to join the conversation.

More
4 years 2 months ago - 4 years 2 months ago #95322 by Limer2001
Limer2001 replied the topic: Dropdown in Multiple short text
Can you (Ricardo,Tony?) post a limesurvey question file or survey file of this working. I can't get it to work.
Last Edit: 4 years 2 months ago by Limer2001.

Please Log in to join the conversation.

More
4 years 2 months ago #95324 by tpartner
tpartner replied the topic: Dropdown in Multiple short text
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.
Attachments:

Please Log in to join the conversation.

More
4 years 2 months ago #95330 by Limer2001
Limer2001 replied the topic: Dropdown in Multiple short text
Thank you so much. With the QID placeholder it's working!

Please Log in to join the conversation.

More
1 year 8 months ago #128124 by petergi
petergi replied the topic: Dropdown in Multiple short text
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

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now