Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Survey attributes

Survey attributes 1 Jahr 1 Monat her #99559

  • fredwhite
  • fredwhites Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
I have metadata about surveys-- beyond what is in lime_surveys and _language_settings tables-- I need to store somewhere. It's pretty easy to add new question_attributes for questions and store them in the "EAV" table format. How come there is no "survey_attributes" table like there is "question_attributes"?

What do other people do? Is it ok to add columns to the surveys table? I usually avoid this. Maybe add my own survey_attributes table and interface and leave the LS db and core alone?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 1 Jahr 1 Monat her #99565

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6451
  • Dank erhalten: 844
  • Karma: 249
Hi Fred :).

We have a new table in 2.05 / Plugin system :
id,plugin_id,model,model_id,jey,value

It's done for this .

For a 1.92: best it's to add an column.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 1 Jahr 1 Monat her #99588

  • fredwhite
  • fredwhites Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hi Denis,

I'm using 1.92. I tested adding a couple of fields to lime_surveys and then adding and editing a survey. It seems ok.

To display the fields in LS admin screen, it looks like I'd also need to edit the admin/editsurveysettings.php?


Fred
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 1 Jahr 1 Monat her #99600

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6451
  • Dank erhalten: 844
  • Karma: 249
Yep,

It's in editsurveysettings.php, and maybe in some other file, but think only here is OK. And for default value, if i remind, there are somewhere all default setting.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 1 Jahr 1 Monat her #99615

  • fredwhite
  • fredwhites Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Thanks. I'll give it a try.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 4 Monate 1 Woche her #110068

Hi Denis,

I have installed LimeSurvey 2.05.

Could you please let me know how I could add custom attributes to surveys ?

The goal would be to fill one or more custom attributes when creating the survey, and search/filter the surveys against the values of these custom attributes.

What would be the best way to achieve this in LimeSurvey 2.0.5 ?
Is it required to use plugins ?
Have you got a planned feature coming out soon regarding survey attributes ?

Many thanks for your help

Kind regards

Laurent
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 4 Monate 1 Woche her #110070

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6451
  • Dank erhalten: 844
  • Karma: 249
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: ynk10

Survey attributes 4 Monate 1 Woche her #110085

Hi Denis,

Many thanks for the quick answer and the link, I will give it a try right now !

Laurent
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 4 Monate 2 Tage her #110233

  • ynk10
  • ynk10s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 1
  • Karma: 0
Hi Denis,

Thank you very much for your useful example. I'm now able to add metadata on my survey and store them in a dedicated table.

Is there a way to include those metadatas in the surveys list view in administration panel in order to filter surveys using metadatas ?

In advance thank you for your answer

King regards
Yannick
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Survey attributes 4 Monate 2 Tage her #110234

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6451
  • Dank erhalten: 844
  • Karma: 249
Do own survey listing page.

Or contribute to LS core to add some plugin event in survey listing
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.171 Sekunden
Donation Image