Accueil
adding a new question type (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: adding a new question type
|
tehnic (User)
Fresh Lemon
Posts: 4
|
|
adding a new question type 5 Months ago
|
Karma: 0
|
|
I want to create a new type of question derived from multiple text.
I need a qoestion with 2 rows of multiple text like:
Enter name and age:
1. name1 _______ age1 ________
2. name2 _______ age2 ________
3. name3 _______ age3 ________
Can someone help me?
At least could someone tell me in what files i must add code.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:adding a new question type 5 Months ago
|
Karma: 0
|
|
Hi,
This question type already exit !
for name is short text and age is numrical input
for example, you can join both in the same group of question and use survey 'group by group'
Best regards
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
tehnic (User)
Fresh Lemon
Posts: 4
|
|
Re:adding a new question type 5 Months ago
|
Karma: 0
|
|
I know i can be made in 2 questions...but in need it in one tu use it in different surveys
Must be a question like:
1. answer1: ________ answer2: __________
2. answer1: ________ answer2: __________
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
tehnic (User)
Fresh Lemon
Posts: 4
|
|
Re:adding a new question type 5 Months ago
|
Karma: 0
|
|
What i need is to add a new multiple short text question that has 2 rows of text inputs. So my problem is how to copy multiple text question and name it different the editing the new type.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:adding a new question type 5 Months ago
|
Karma: 7
|
|
You'll need to make modifications in at least the following files:
common.php
qanda.php
activate.php
browse.php
dataentry.php
export.php
spss.php
questionhandling.php
The process of adding new questions is very complicated. For me, even having created the software and knowing the general systems behind it, it takes, on average, 10 hours - and then often requires significant debugging once follow-on issues start to arise.
Jason
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
tehnic (User)
Fresh Lemon
Posts: 4
|
|
Re:adding a new question type 5 Months ago
|
Karma: 0
|
|
I managed to clone a multiple text question name it different and modify the function do_question.....the problem...don't know what letter to assign to type....seems to me all were used so i made something like Q2 but i had to modify manually the query table to accept 2 chars....but after i made the survey active otherwise gave query error.
Why? have any ideea?
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:adding a new question type 5 Months ago
|
Karma: 0
|
|
maybe you can use a symbole ? like "§" or "&" ?
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 3225
|
|
Re:adding a new question type 5 Months ago
|
Karma: 25
|
|
startx25 wrote:
maybe you can use a symbole ? like "§" or "&" ?
That's what I would recommend, too. Changing the database might have several side effects so please look for a single char for your new question type.
As Jason said: Implementing a new question type is really hard. For you the easiest way would probably be to donate and ask an experienced programmier to do this for you. There are so many files and dependencies you have to take care of.
|
|
|
|
Logged
|
|
|
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
|
|
|
The administrator has disabled public write access.
|
|
|
|
|