The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1

SUJET : Many Custom Attributes - Looking for an alternate method...

Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89327

  • helper
  • Portrait de helper
  • Hors ligne
  • Expert Lime
  • Messages : 126
  • Remerciements reçus 17
  • Karma: 0
We have a survey that could have up to 88 custom attributes (yes, the survey is a monster). I was wondering if there is any method to the survey admin to use cookies in the group/question/sub-question logic? Setting the cookies is simple... using them in LimeSurvey seems a huge question.
Dernière édition: il y a 5 mois 3 semaines par helper.
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89330

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2853
  • Remerciements reçus 424
  • Karma: 244
If you mean using the cookies to control the existing conditions and Expression Manager behaviour, I believe the short answer is no, not without hacking the core code.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89349

  • helper
  • Portrait de helper
  • Hors ligne
  • Expert Lime
  • Messages : 126
  • Remerciements reçus 17
  • Karma: 0
Thanks tpartner... how about some way to import the custom attributes?
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89356

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2853
  • Remerciements reçus 424
  • Karma: 244
You can import a CSV file for the tokens. The easiest method would be to export an existing table, modify the CSV and then import.

Capture_2012-11-29.JPG
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89362

  • helper
  • Portrait de helper
  • Hors ligne
  • Expert Lime
  • Messages : 126
  • Remerciements reçus 17
  • Karma: 0
Great sadness... that did not work. I exported a token set that had one custom attribute, then created additional columns with new attributes, then did the import (see attached) into a clean survey (with no tokens). All I get is one token with no additional attributes.
Pièces jointes :
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Many Custom Attributes - Looking for an alternate method... il y a 5 mois 3 semaines #89364

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2853
  • Remerciements reçus 424
  • Karma: 244
Sorry, I misunderstood.

You will need to create all of the attributes in the LS interface but then the values for each respondent can be imported.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur à désactivé l'accès en écriture pour le public.

HACK.... il y a 5 mois 1 semaine #89750

  • helper
  • Portrait de helper
  • Hors ligne
  • Expert Lime
  • Messages : 126
  • Remerciements reçus 17
  • Karma: 0
Mother of invention... Well, this may not be ideal, but my need was far beyond taking the time to do everything in an ideal method.

The following hack adds the following capabilities:

1. Delete individual custom attributes (TODO: add a confirm message).
2. Does not display the upper section if there are no attributes.
3. Added upload CSV file to parse out two of the attribute fields (description and caption).

Caveat - I probably should have put in some mechanism to check for existing and/or archive existing off, but all of my surveys are new... sorry :(

Two files in the attached archive are based on Version 2.00+ Build 121204 - the other two files are the custom UNC file and an CSV example.

Paths are not included in the archive - should be:

...application/controllers/admin/tokens.php
...application/views/admin/token/managetokenattributes.php
...application/unc/UNC_CustomAttributes.php
Pièces jointes :
Dernière édition: il y a 5 mois 1 semaine par helper.
L'administrateur à désactivé l'accès en écriture pour le public.
  • Page :
  • 1
Modérateurs: DenisChenu, ITEd
Temps de génération de la page : 0.276 secondes
Donation Image