- Posts: 16
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Default survey settings
- Andrewsss
- Topic Author
- Offline
- New Member
Less
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
Thanks
The topic has been locked.
- cacorns
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
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,
is saved as
by default in database.
The files that the installer uses for creating and populating the database are
.
In case of
the file
contains the following piece of code:
So you should change the line
to
For an installation already existent you should change the defaults directly into the database.
As I could see, this defaults are in the databases. So they are saved in database when installing LimeSurvey.
For instance,
Code:
datestamp
Code:
'N'
The files that the installer uses for creating and populating the database are
Code:
installer/sql/create-<dbms>.sql
In case of
Code:
datestamp
Code:
installer/sql/create-psql.sql
Code:
CREATE TABLE prefix_surveys ( // ... "datestamp" character varying(1) DEFAULT 'N' NOT NULL, // .. );
So you should change the line
Code:
"datestamp"...
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
3 years 7 months ago #205418
by DenisChenu
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.
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
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.