Welcome to the LimeSurvey Community Forum

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

Looking to create an Expandable TextArray? Can anyone help?!

  • Jordyhaze
  • Jordyhaze's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #187834 by Jordyhaze
Hi,

I'm not too sure if this will get responded to in time however I wanted to ask anyway as i'm only making myself more confused the further I go on without exactly knowing what to do.

I'm trying to do an expandable TextArray however rather than populating a new line once the answer has been clicked on, as of course this would usually be a radio list, (Like in your demo example - www.partnersinc.biz/surveys//index.php?s...58&newtest=Y&lang=en ) I want it to create a new line once each of the four scales have been populated via text input.

Is this able to be done? I'm new to this software so i'm still trialing and learning as I go but wondered if there was anyone who knows whether this can be completed or not, and if it can, how?

Thanks,
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187856 by Joffm
Hi,
you nearly answered your question already.
You say the condition to display the next row is:
Each of the four text fields is filled - or: no one is empty.

Here you use subqueston relevance.
Therefore you enter in the subquestion relevance of the second subquestion
!is_empty(Q1_SQ001_X001) and !is_empty(Q1_SQ001_X002) and !is_empty(Q1_SQ001_X003) and !is_empty(Q1_SQ001_X004)
and in the third subquestion
!is_empty(Q1_SQ002_X001) and !is_empty(Q1_SQ002_X002) and !is_empty(Q1_SQ002_X003) and !is_empty(Q1_SQ002_X004)

with subquestion (y-scale) codes SQ001, SQ002, ...
x-scale codes X001, X002, ...

You see, a row is displayed if all fields of the previous row are filled.








Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Jordyhaze
  • Jordyhaze's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #187880 by Jordyhaze
Hi,

Thanks for your response however I'm still having an issue.

I've tried doing what you advised however it's still showing all rows when I preview the question? Rather than one appearing after the one previous has been filled out completely.

What am I doing wrong here?

Thanks,

Jordan
The topic has been locked.
  • Jordyhaze
  • Jordyhaze's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #187881 by Jordyhaze
Hi,

ignore my other response, just figured where I went wrong! Works perfectly now!

Thanks!

Jordan
The topic has been locked.
  • Jordyhaze
  • Jordyhaze's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #187898 by Jordyhaze
Actually, last question!

Is there any formula that can be made so that a further question will only show if a certain word has been typed into the fourth scale ONLY, in either of the subquestions?

So this will be Q1_X004, but if for example the word I wanted to find is "Test"

How could that be written to allow a search in all of the fourth scale to see if this word is found?

Apologies for the numerous responses I'm still getting to grips with LimeSurvey and still learning the capabilities of it, if this were Excel I'd know exactly which formula to use, however with this I'm still learning.

Thanks,

J
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187901 by Joffm
Please, read the manual
manual.limesurvey.org/Expression_Manager...mplemented_functions

There are a lot of string function like "strpos", "stripos", "strstr", "stristr" that you may use.

In your case you have to use question validation.
In the validation equation write something like
(stripos(Q0_SQ001_X004,"Test")>=0) OR (stripos(Q0_SQ002_X004,"Test")>=0) OR (stripos(Q0_SQ003_X004,"Test")>=0) OR (stripos(Q0_SQ004_X004,"Test")>=0)

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose