Welcome to the LimeSurvey Community Forum

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

create a cellreference or macro like in excel

More
10 years 2 days ago #124510 by Thomassie
I would like to know if it is possible to do the following:

at the start of your survey, you choose a name from a dropdown menu, when chosen that name automatically appears in following questions.

is there code in html that will get this done ?
The topic has been locked.
More
10 years 2 days ago #124511 by tpartner
Please refer to the manual. You can use {INSERTANS} or Expression Manager tailoring/piping.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
10 years 2 days ago #124526 by gabrieljenik
Complementing TPARTNER, you can add the dropdown as a first question and use the INSERTANS in the rest of the survey.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
10 years 2 days ago #124528 by Thomassie
Thanks Gabriel en Tpartner. It works like a charm. There is still a small thing that bothers me, but I don't know if there is a solution.

Problem: if they choose a name in the dropdown menu, it has to be the full name, but when the name later reappears it should only be the given name without the surname. But I cannot think of a solution.

Is there a way to make a part of the answer to become invisble.

I have limesurvey 2.05 +
The topic has been locked.
More
10 years 2 days ago #124529 by gabrieljenik
Maybe you could have display the fullname in the dropdown but only have the first name in the answer code.
You would only display the answercode in the following Questions and not the answerText.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
10 years 2 days ago #124530 by Thomassie
That's exactly what I want, but I do not know how to accomplish this.

Do you know how ?


greetings

thomas
The topic has been locked.
More
10 years 2 days ago #124531 by holch
Gabriel, I thought of this as well, but then what happens when you have more than one "Gabriel" for example? You can't identify people anymore and you wouldn't know which person is participating, because it could be any Gabriel.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
10 years 2 days ago #124532 by Thomassie
How do you create full name in drop down and only given name in answerbox ?
The topic has been locked.
More
10 years 2 days ago #124534 by Thomassie
If the code stays unique (just partly hidden) then it does not matter if there is more then one "Gabriel" ?

The purpose of my survey is to let a group of people (cliënt, peer, manager, network, self) validate one person's talents and at which level.
The topic has been locked.
More
10 years 2 days ago #124535 by holch
When you create your answer options, you have the answer code and the text of the answer, correct? So you could put the first name of the respondent as answer code and you could use the full name as the answer text.

But as I stated above, this only works, if there are no repetitive first names in your list of names (or if you don't need to know which person has answered what, but this sounds pretty unlikely, when you have a question with the name list included in your research).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
10 years 2 days ago #124536 by Thomassie
Now I get it (almost :) ). How would you ensure that in your insertans23X24... the answercode and not the answertext appears ?

Above question is just nice to know, because you were right, this has no practical use in my survey, because each code has to be unique.

I was hoping that there was some html code that could make part of the answerbox not visible, or something like that.

thanks for the effort, nonetheless !
The topic has been locked.
More
10 years 2 days ago #124537 by gabrieljenik
If you have more than one "Gabriel", you could make the AnswerCode "Gabriel J" and "Gabriel K".
Or "Gabriel-" and "Gabriel." :)

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
10 years 2 days ago #124538 by Thomassie
could I make the answercode Gabriel[space] ?
Can you tell me how I can enforce the answercode instead of the answertext to appear ?
The topic has been locked.
More
10 years 2 days ago #124539 by holch
You would use Expression Manager for this:
Code:
{yourquestioncode.code}

www.limesurvey.org/manual/Expression_Manager

While I was doing a mistake in my code above I had a new idea: maybe you can use the assessment value for this? (not sure if you can put letters though). But you would still have a normal answercode. You would need to try it if it works. You can access the assessment value like above, just write "value" instead of "code".

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
10 years 2 days ago #124540 by Thomassie
Glad you found a solution. But I'm using version 2.05, so I can't use Expression Manager and I can't (am not allowed) to upgrade.

But no worries, the reason for the abbreviation is foremost to install a more informal and natural flow in my survey, so if this doesn't work it's not the end of the world.

thanks again for all the help !!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose