Survey attributes

More
3 years 10 months ago #99559 by fredwhite
fredwhite created the topic: Survey attributes
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?

Please Log in to join the conversation.

More
3 years 10 months ago #99565 by DenisChenu
DenisChenu replied the topic: Survey attributes
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.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 10 months ago #99588 by fredwhite
fredwhite replied the topic: Survey attributes
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

Please Log in to join the conversation.

More
3 years 10 months ago #99600 by DenisChenu
DenisChenu replied the topic: Survey attributes
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 10 months ago #99615 by fredwhite
fredwhite replied the topic: Survey attributes
Thanks. I'll give it a try.

Please Log in to join the conversation.

More
3 years 1 month ago #110068 by laurentricci
laurentricci replied the topic: Survey attributes
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

Please Log in to join the conversation.

More
3 years 1 month ago #110070 by DenisChenu
DenisChenu replied the topic: Survey attributes
gitorious.org/Demo-limesurvey/examplesettings

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: ynk10

Please Log in to join the conversation.

More
3 years 1 month ago #110085 by laurentricci
laurentricci replied the topic: Survey attributes
Hi Denis,

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

Laurent

Please Log in to join the conversation.

More
3 years 1 month ago #110233 by ynk10
ynk10 replied the topic: Survey attributes
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

Please Log in to join the conversation.

More
3 years 1 month ago #110234 by DenisChenu
DenisChenu replied the topic: Survey attributes
Do own survey listing page.

Or contribute to LS core to add some plugin event in survey listing

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now