Welcome, Guest
Username: Password: Remember me

TOPIC: unnecessary line break before and after the value containd in curly braces

unnecessary line break before and after the value containd in curly braces 11 months 3 weeks ago #101138

  • Locher
  • Locher's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi!

I use Limesurvey Version 2.00+ Build 130929
I created a multiple numeric fields question with subquestions that contain a reference to the value of a previous question. Lets say Q1 SQ001 has N1 as value
In Q2 SQ001 as lable I have a text "This is the label of subquestion. Before you estimated {Q1_SQ001.value} % market share"

For the respondent it looks like the following. All the parts are on new lines:

This is the label of subquestion. Before you estimated
N1
% market share

How can I make that all apears on one line like this:
This is the label of subquestion. Before you estimated N1 % market share.

I would apreciate your help.
Best
The administrator has disabled public write access.

unnecessary line break before and after the value containd in curly braces 11 months 3 weeks ago #101155

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4264
  • Thank you received: 801
  • Karma: 368
Check the source of the question text for unwanted line breaks (<br /> tags).
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

unnecessary line break before and after the value containd in curly braces 11 months 3 weeks ago #101185

  • Locher
  • Locher's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
OK, I looked at the HTML that the page produce when I fill out the survey with a dummy and there it looks like this:

<label for="answer822221X37X839SQ001">
DGN. You estimated a current market share of
<span id="LEMtailor_Q_839_95"></span>
%
</label>

When I am in the administration at the level of the subquestions and I clic on HTML editor on the specified subquestion it looks like this:

DGN. You estimated a current market share of {current_market_SQ001.value}%

I have also tried with an additional space after the curly brace:

DGN. You estimated a current market share of {current_market_SQ001.value} %

The same result for both. Can the <span> cause the breaks? If so I don't know how to avoid that, because in the editor the tag doesn't apear and there are no <br> anywhere.

Can you lead me in this?
Thanks for your help.
The administrator has disabled public write access.

unnecessary line break before and after the value containd in curly braces 11 months 3 weeks ago #101187

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4264
  • Thank you received: 801
  • Karma: 368
Yes, the span could be causing the line-break if there is a CSS rule causing it to display block.

What template are you using?

Can you activate a test survey so we can see the source and styles?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

unnecessary line break before and after the value containd in curly braces 11 months 3 weeks ago #101188

  • Locher
  • Locher's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Something strange just happend and resolved my problem. I exported the question and imported it again in another group and now the whole phrase appears correctly on one line.
Thanks for your thoughts tpartner.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image