What do you mean with "prefilled answer", proposed answer?
Do you mean e.g. number of children. You have the number of children in the database, so you want to put this as the default answer? This is also possible, but depends a little bit on the question type you are using.
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.
Okay. I tried it and it works.
BUT: I want that users can reopen their survey and change the informations filled in before.
Now, if I use a {TOKEN:FIRSTNAME} as suggested answer, I would get always the info from the database.
Is it possible to check wether the user answered this question before? if so there should appear the user input text - not the database text.
you know what I mean?
You will need to use ExpressionManager (which is a Script language, soon called ExpressionScript).
But depending on the questions, where you want to assign default values, it might be a bit tricky.
If the question has a default answer value, you might check via is_empty on the fieldcontent.
Can you provide a simple survey as an example (lss export)?
For last name etc (text question), directly use {TOKEN:LASTNAME} in default value.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.