Home
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
adding a new question type (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: adding a new question type
#15013
tehnic (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
adding a new question type 2 Months, 2 Weeks 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 Logged  
  The administrator has disabled public write access.
#15019
startx25 (User)
Expert Lime
Posts: 94
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks 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 Logged  
  The administrator has disabled public write access.
#15021
tehnic (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks 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 Logged  
  The administrator has disabled public write access.
#15036
tehnic (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks 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 Logged  
  The administrator has disabled public write access.
#15045
jcleeland (Admin)
Admin
Posts: 223
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks ago Karma: 5  
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 Logged  
  The administrator has disabled public write access.
#15049
tehnic (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks 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 Logged  
  The administrator has disabled public write access.
#15058
startx25 (User)
Expert Lime
Posts: 94
graphgraph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks ago Karma: 0  
maybe you can use a symbole ? like "§" or "&" ?
 
Logged Logged  
  The administrator has disabled public write access.
#15064
Mazi (Moderator)
Moderator
Posts: 2325
graph
User Offline Click here to see the profile of this user
Re:adding a new question type 2 Months, 2 Weeks ago Karma: 18  
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.
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop