Welcome to the LimeSurvey Community Forum

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

Delete prior attributes from CPDB?

  • deshon
  • deshon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 11 months ago #94242 by deshon
Delete prior attributes from CPDB? was created by deshon
Hello.

I'm new to limesurvey and trying to wrap my head around the database integration.

I'm running into a problem with token attributes that are incrementing making it difficult to refer to them in my survey. Here's the deal.

I import a set of participants with an additional attribute of 'team.'

Then I share the participants with a survey and include the team attribute as a token.

I write survey questions that are tailored to the team using something like:
'I am proud to be a member of {TOKEN:ATTRIBUTE_CPDB_1}'

The problem occurs when I delete all participants and tokens and then re-import the set of users and form a new token table.

Now, the token associated with team is automatically incremented to {TOKEN:ATTRIBUTE_CPDB_2} rendering all of my survey questions that reference {TOKEN:ATTRIBUTE_CPDB_1} broken.

How do I stop the attribute from automatically incrementing? Do I need to delete the old token tables? If so, how do I do that? Do I delete the old token tables directly in the Limesurvey database or can I do it within the Limesurvey GUI?

Basically, I need to import users with unique attributes and have the attributes referred to by the same name so that the code in my survey questions doesn't change each time.

Or am I thinking about the problem wrong?

Thanks in advance!

Rick
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose