Welcome to the LimeSurvey Community Forum

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

replacing a empty space with a piece of text

  • jaws40
  • jaws40's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #118566 by jaws40
The following problem
I use the output of questions in a multiple choice Q
as in .... You can lift.... {intertransexample1} kg score is {intertransexample1.1}
thats works okee.
It looks like You can lift a box of 10 KG score is 100
Problem is than not in every dossier the example Question is answered previously cause its not relevant

then the text in my multiple choice looks like

you can lift score

It would be nice if there would be a text like "not relevant" to fill in the blanks
something like if empty then....
But i dont know how to realise that in EM
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #118568 by tpartner
Replied by tpartner on topic replacing a empty space with a piece of text
Try this:

Code:
{if(is_empty(intertransexample1.NAOK) , 'N/A', intertransexample1.NAOK)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: jaws40
The topic has been locked.
  • jaws40
  • jaws40's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #118590 by jaws40
yup that did the trick. thanx now for a another problem in this project.
Its a Multiple choice question with the comment field.
i would have all the checkmarks on (pre defined) and people are allowed to uncheck then
if the do so they should write in the comment box the reason why they uncheck.... but ....alas... the unchecking the box disables the text box... is there a work around?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose