- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Trouble getting default answers to work
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
3 years 9 months ago #202949
by rudydehaas
Trouble getting default answers to work was created by rudydehaas
I don't think this is a bug - it's probably just something I'm not seeing.
I have a non anonymous survey with a first question that has default answers from the participant table. There are 7 new attributes and the default answers are set to {TOKEN:attribute_x} where x is 1->7. It doesn't work - I've seen it work before so.. ???
(On debian, firefox, V4.4.3, php 7.2, mysql; no errors reported)
Please have a look at the pics attached and enlighten me. - thanks!
I have a non anonymous survey with a first question that has default answers from the participant table. There are 7 new attributes and the default answers are set to {TOKEN:attribute_x} where x is 1->7. It doesn't work - I've seen it work before so.. ???
(On debian, firefox, V4.4.3, php 7.2, mysql; no errors reported)
Please have a look at the pics attached and enlighten me. - thanks!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
3 years 9 months ago #202950
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Trouble getting default answers to work
You should use {TOKEN:ATTRIBUTE_1} (all capitalized)
Joffm
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago - 3 years 9 months ago #202952
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
Last edit: 3 years 9 months ago by rudydehaas. Reason: wrong attachments
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago #202954
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
I made a version of the survey with only this question in it. I will try to attach a copy here so anyone can try it and tell what I did wrong. (I assume this includes the 7 additional attributes)
Attachments:
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago #202957
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
I made a cleaner version of the one question survey (.lss, attached. ) This one somewhat works...
1 - all default answers are of the form "{TOKEN:ATTRIBUTE_X)", x = 1-->7
2 - some of them work if the survey is accessed from an email with a url/token but none work on question preview.
3 - see photos:
3.1 result:
(note that
shows the correct values in the participant table. (If you look at "manage attributes there they show up as lower case "attribute_x", x= 1-->7; as they should.
shows the default answer set-up
shows the result.
Note that: course Name is att_1, what shows is att_7; CourseNum is correct, Faculty is correct, but instructor is att_4 what is showing here is att_5. Section is att6 (what is showing is att3), session is att7, what is showing is att4.
1 - all default answers are of the form "{TOKEN:ATTRIBUTE_X)", x = 1-->7
2 - some of them work if the survey is accessed from an email with a url/token but none work on question preview.
3 - see photos:
3.1 result:
(note that
shows the correct values in the participant table. (If you look at "manage attributes there they show up as lower case "attribute_x", x= 1-->7; as they should.
shows the default answer set-up
shows the result.
Note that: course Name is att_1, what shows is att_7; CourseNum is correct, Faculty is correct, but instructor is att_4 what is showing here is att_5. Section is att6 (what is showing is att3), session is att7, what is showing is att4.
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
3 years 9 months ago - 3 years 9 months ago #202982
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Trouble getting default answers to work
This is strange.
I tested in 4.3.1.
with these default answers
and these attributes
But in a second try I got this:
Joffm
I tested in 4.3.1.
with these default answers
and these attributes
But in a second try I got this:
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 9 months ago by Joffm.
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago #202984
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
Thanks - I was starting to doubt my sanity. Filed a bug report on this around 5 AM today.
I redid everything on my backup machine - same result. Tried it with lime 3.22, same again.
I redid everything on my backup machine - same result. Tried it with lime 3.22, same again.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11661
- Thank you received: 2742
3 years 9 months ago #202985
by holch
Am I reading this correctly? You are testing it in the question preview? There is no chance that this will work, because Limesurvey has no access to the token table, if respondents do not enter the survey via a token.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Trouble getting default answers to work
2 - some of them work if the survey is accessed from an email with a url/token but none work on question preview.
Am I reading this correctly? You are testing it in the question preview? There is no chance that this will work, because Limesurvey has no access to the token table, if respondents do not enter the survey via a token.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago #202986
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
Thanks, I didn't know that.
However.. the key thing is that it messes up both with an email token and if you allow public access and the user then enters values for each attribute as part of gaining access.
However.. the key thing is that it messes up both with an email token and if you allow public access and the user then enters values for each attribute as part of gaining access.
The topic has been locked.
- rudydehaas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
3 years 9 months ago #203034
by rudydehaas
Replied by rudydehaas on topic Trouble getting default answers to work
Well..
The question works just as it should if I only use four attributes (b ut define all seven in the participant table) Splitting the 6 part question into two works for both.
In making a new survey with only the one question with only four default answers instead of 6 I typed each of the "{TOKEN:ATTRIBUTE_x} entries rather than typing only the first one and then using cut and paste on the others before fixing the numbers. I have not tried to use cut and paste on a four part question, but I wonder.. is this more gnome weirdness?
The question works just as it should if I only use four attributes (b ut define all seven in the participant table) Splitting the 6 part question into two works for both.
In making a new survey with only the one question with only four default answers instead of 6 I typed each of the "{TOKEN:ATTRIBUTE_x} entries rather than typing only the first one and then using cut and paste on the others before fixing the numbers. I have not tried to use cut and paste on a four part question, but I wonder.. is this more gnome weirdness?
Attachments:
The topic has been locked.