Welcome to the LimeSurvey Community Forum

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

Default survey settings

  • Andrewsss
  • Andrewsss's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196286 by Andrewsss
Default survey settings was created by Andrewsss
Hi in which file I can set new survey settings for creating surveys, I want change default values?
Thanks
The topic has been locked.
More
3 years 7 months ago #205390 by cacorns
Replied by cacorns on topic Default survey settings
I want to change some default settings too and the only way I could do that is changing the source code of the LimeSurvey installer.

As I could see, this defaults are in the databases. So they are saved in database when installing LimeSurvey.

For instance,
Code:
datestamp
is saved as
Code:
'N'
by default in database.

The files that the installer uses for creating and populating the database are
Code:
installer/sql/create-<dbms>.sql
.

In case of
Code:
datestamp
the file
Code:
installer/sql/create-psql.sql
contains the following piece of code:
Code:
CREATE TABLE prefix_surveys (
    // ...
    "datestamp" character varying(1) DEFAULT 'N' NOT NULL,
    // ..
);

So you should change the line
Code:
"datestamp"...
to
Code:
"datestamp" character varying(1) DEFAULT 'Y' NOT NULL,

For an installation already existent you should change the defaults directly into the database.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205418 by DenisChenu
Replied by DenisChenu on topic Default survey settings
1. We don't use sql file since years …
2. Some defaut value are set in model file , not by SQL

Else : no solution out of the box : hack Limesurvey code.

Or better
1. Make a feature request
2. Create you own code
3. Make a pull request on github

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose