- Posts: 49
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Add column(s) to multiple short text
- danika
- Topic Author
- Offline
- Senior Member
Less
More
9 years 8 months ago - 9 years 8 months ago #110486
by danika
Add column(s) to multiple short text was created by danika
Hello everyone,
Because they display vertically, there is a lot of white (empty) space left on multiple short text questions. I would like to ask if anyone can suggest a way to do three things:
Such a form would be useful for the intake of basic contact info, such as phone numbers. Validation with regex is difficult to do when dealing with forms that may be used internationally. However, if we can separate the elements of any phone number, such as by country code, area code, carrier code, city code, phone number, and extension, then the task of validation becomes easier as the elements, whose form and format vary from country to country, are reduced to their simplest elements. Additionally, to represent all these elements vertically, as multiple short text does, taking the phone numbers of two or more contacts can easily use an entire page. Organizing these elements horizontally in columns, on the other hand, you could take several numbers and condense them into a single question within a reasonable space.
Thanks in advance!
Because they display vertically, there is a lot of white (empty) space left on multiple short text questions. I would like to ask if anyone can suggest a way to do three things:
- Add another column or columns with text input boxes;
- add some text to one of the new columns to include your instructions or comments; and,
- use regex expressions to validate each of the fields individually?
Such a form would be useful for the intake of basic contact info, such as phone numbers. Validation with regex is difficult to do when dealing with forms that may be used internationally. However, if we can separate the elements of any phone number, such as by country code, area code, carrier code, city code, phone number, and extension, then the task of validation becomes easier as the elements, whose form and format vary from country to country, are reduced to their simplest elements. Additionally, to represent all these elements vertically, as multiple short text does, taking the phone numbers of two or more contacts can easily use an entire page. Organizing these elements horizontally in columns, on the other hand, you could take several numbers and condense them into a single question within a reasonable space.
Thanks in advance!
Last edit: 9 years 8 months ago by danika.
The topic has been locked.
- jpw
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
9 years 7 months ago #111053
by jpw
Replied by jpw on topic Add column(s) to multiple short text
Danika,
I had a similar request a while back. I have not had any luck in coming up with a solution that would allow horizontal phone contact information to be entered with separate validation expressions on each such as Area code XXX Number XXX-XXX Ext. XXXXX
If you come up with a solution could you let me know!
This seems like a good idea for a new question type. Another would be address contact information. In US for example:
Name
Street Address
City
State
Zip Code
I had a similar request a while back. I have not had any luck in coming up with a solution that would allow horizontal phone contact information to be entered with separate validation expressions on each such as Area code XXX Number XXX-XXX Ext. XXXXX
If you come up with a solution could you let me know!
This seems like a good idea for a new question type. Another would be address contact information. In US for example:
Name
Street Address
City
State
Zip Code
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
8 years 9 months ago #120954
by danika
Replied by danika on topic Add column(s) to multiple short text
JPW,
I have not been about to figure this out for international numbers. Regex expressions are of limited use. It's been awhile since I have visited this issue. But, I would appreciate any updates on the ability to validate individual fields.
Best -
Danika
I have not been about to figure this out for international numbers. Regex expressions are of limited use. It's been awhile since I have visited this issue. But, I would appreciate any updates on the ability to validate individual fields.
Best -
Danika
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10613
- Thank you received: 3691
8 years 9 months ago #120957
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Add column(s) to multiple short text
You could use several short-text questions and CSS (and maybe a little JS) to align them side-by side. Details of CSS and/or JavaScript would depend on the template used.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.