- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Flag text fields for better control on exports
- Brettski
- Topic Author
- Offline
- New Member
Less
More
3 years 7 months ago #205200
by Brettski
Flag text fields for better control on exports was created by Brettski
Hi
I am very new to Lime survey design; I wish to place a simple flag on a small text field (eg on a name field) which will be exported with the exported data. The flag could be a simple char such as "I" for internal or even a number. I could I guess disguise this in the field label however I would prefer it to be hidden from survey users. Thanks
I am very new to Lime survey design; I wish to place a simple flag on a small text field (eg on a name field) which will be exported with the exported data. The flag could be a simple char such as "I" for internal or even a number. I could I guess disguise this in the field label however I would prefer it to be hidden from survey users. Thanks
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 7 months ago #205203
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Flag text fields for better control on exports
Hi,
what exactly do you want to do?
Do you want to add something to the data.
E.g. the respondent enters "ABCDEF" and you get "IABCDEF" in the export?
Or have this flag in the header of the export?
First case:
At the end of the survey insert a question of type equation that adds your "flag".
E.g. {Q1=join("I",Q1)}
Second: Code of question or subquestion.
Anyway; A better explanation is appreciated.
Joffm
what exactly do you want to do?
Do you want to add something to the data.
E.g. the respondent enters "ABCDEF" and you get "IABCDEF" in the export?
Or have this flag in the header of the export?
First case:
At the end of the survey insert a question of type equation that adds your "flag".
E.g. {Q1=join("I",Q1)}
Second: Code of question or subquestion.
Anyway; A better explanation is appreciated.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Brettski
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
3 years 7 months ago #205220
by Brettski
Replied by Brettski on topic Flag text fields for better control on exports
Thanks Joffm,
My requirement is at the field level, and needs to "stamp" the field value exported for the purposes of the import routine in another app. As an example I might have 10 questions in a group, 5 of which I wish an import routine in another app to treat in a specific way eg put in a specific table, the rest to put in another table. The question level flag is known from the outset and can be set in the questionnaire deigner. If I could flag a question with a category, this would allow the import rtn to detect the flag from the lime exported data and process accordingly. Hope this makes sense. I do not need the survey user to be aware of the flag. Thank you.
My requirement is at the field level, and needs to "stamp" the field value exported for the purposes of the import routine in another app. As an example I might have 10 questions in a group, 5 of which I wish an import routine in another app to treat in a specific way eg put in a specific table, the rest to put in another table. The question level flag is known from the outset and can be set in the questionnaire deigner. If I could flag a question with a category, this would allow the import rtn to detect the flag from the lime exported data and process accordingly. Hope this makes sense. I do not need the survey user to be aware of the flag. Thank you.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 7 months ago #205221
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Flag text fields for better control on exports
So, it should be sufficient that the question code contains something specific that is recognized by your other application?
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.