- Posts: 185
- Thank you received: 11
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
SOLVED:Can EM be used in attribute_X? (error in manual)
- bulgin
- Topic Author
- Offline
- Elite Member
Just an FYI in the manual for expression manager manual.limesurvey.org/Expression_Manager_examples under the caption "Using hidden equation question to autofill an answer" I believe the example given is missing an opening curly bracket {
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13648
- Thank you received: 2491
No, you can use only TOKEN:ATTRIBUTE_Xbulgin wrote: Can expression manager be used to either show a value or leave the field blank in CPD Attribute_X's?
Then : when copying the CPDB user : copy the attribute at same time.
Fixed, but anyone with a LS account can fix the manualbulgin wrote: Just an FYI in the manual for expression manager manual.limesurvey.org/Expression_Manager_examples under the caption "Using hidden equation question to autofill an answer" I believe the example given is missing an opening curly bracket {
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
TOKEN:EMAIL
and that would input the the value a survey participant entered into the email field question into the Attribute_1 field?
What I'm trying to arrive at is a value populating the Attribute_1 but only if the question had an answer. If it was left blank, then nothing gets entered into Attribute_1.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13648
- Thank you received: 2491
You can't populate token attribute with response inside survey.What I'm trying to arrive at is a value populating the Attribute_1 but only if the question had an answer. If it was left blank, then nothing gets entered into Attribute_1.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13648
- Thank you received: 2491
bulgin wrote: Ok. thank you. Your plugin does but there is no method within the plugin to change variables and test the logic. That's okay. Just needed clarification.
My plugin ? He does the validation directly and show the error
But if you don't want to update : using : expression returning [empty] string : don't update (if i don't make error).
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
{if(email,"{email}"," ")}
The above formula is put into the plugin at:
Surveys | Plugin Manager | updateTokenByResponse | Value for attribute 2
FYI: DenisChenu's updateTokenByResponse must already have been installed and activated.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13648
- Thank you received: 2491
???? You enter {email} as value ?
In my opinon {email} can, do the trick. If email is empty : it don't update the attribute. It's better no ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
But let me re-test. You may be correct. Standby.
- bulgin
- Topic Author
- Offline
- Elite Member
- Posts: 185
- Thank you received: 11
My mistake previously was that I had a formula in the survey's "Simple Plugin" for attribute_X.
My mistake. DenisChenu is correct!
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3595
Yup, almost always!DenisChenu is correct!
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.