Welcome to the LimeSurvey Community Forum

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

Side-by-side questions, array combined with a short text

  • bamazzish
  • bamazzish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #205795 by bamazzish
Dear all,

I need help, please:

I have a survey to create for our institute's alumni where:

1. We upload pre-submitted data for viewing and ask people to only edit what has changed since last year.

2. The survey participants should be able to either click on the data and edit it in the same line or if it is possible for a short text slot to appear next to each question in an array when they click on "Edit" button and add the necessary information.

I used Tony's and Joffm's scripts from a previous post on "Multiple question types in array"

forums.limesurvey.org/forum/design-issue...ypes-in-array#129574

However, it only works for the first question. Please find the .Iss file attached. Please feel free to suggest a more efficient way of doing this.

File Attachment:

File Name: limesurvey...Alex.lss
File Size:30 KB


I would be grateful for any guidance or a JavaScript (I am new to all this and do not know Java, only basic HTML).

Thank you for your time and support.

With my gratitude,
Alex
Last edit: 3 years 6 months ago by bamazzish.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205831 by Joffm
Hi, Alex, in my opinion your approach is not the best.
And, of course this question must not be mandatory, if only the rows are clicked which has to be changed.

I'd recommend a question of type "multiple short text", where you
either display the attributes in the subquestion text (as you did before), saying "Enter the corrected value or leave blank"
or place the attributes into the answer field as "default answer", saying "Correct it or leave it as it is"

You may use an array(text) as well.





Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: bamazzish
The topic has been locked.
  • bamazzish
  • bamazzish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205838 by bamazzish
Dear Joffm,

The solution makes sense. Will try this tonight.
Many thanks for sharing your wisdom.

With my gratitude,
Alex
The topic has been locked.
  • bamazzish
  • bamazzish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #205846 by bamazzish
Dear Joffm,

Your solution works like a charm! Many thanks!
Just a few more questions if I may ask, please:

1. How can I increase the number of characters in the Edit Default Answers' slot (e.g. for "Brief Description of Your Role") - it appears abridged (the submitted text is a bit too long and gets cut-off mid-way)

2. How can I create a drop-down menu for some of the answers (e.g. "Country of Residence"). I tried inserting the following in the Edit Default Answers where it is needed but it does not work:

www.technicalkeeda.com/html-tutorials/al...op-down-list-in-html

3. How can I align the first column left - my Subquestions are aligned right for some reason

My apologies for the long list of request. Please see my .Iss file attached. I would be grateful for any guidance.

With my gratitude,
Alex
Last edit: 3 years 6 months ago by c_schmitz.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose