Welcome to the LimeSurvey Community Forum

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

Blank Lines in Summary Page and End Page.

  • hengkylintang
  • hengkylintang's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago - 1 year 10 months ago #229755 by hengkylintang
Blank Lines in Summary Page and End Page. was created by hengkylintang
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.28.16+220621
Own server or LimeSurvey hosting: Own server
Survey theme/template: fruity
==================
I create a summary page and with text display question type and End Page to print the answers using code {Presek01_A001.shown} {presek01_A002.shown} and so on. It works but there are blank lines between the answers. how to fix it?  (Presek01 is question code and A001,A002,...is sub question code)
Thanks in Advance
 
Attachments:
Last edit: 1 year 10 months ago by hengkylintang.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #229756 by tpartner
Replied by tpartner on topic Blank Lines in Summary Page and End Page.
We have no clue without seeing the HTML that you entered. Check it in source mode.

Cheers,
Tony Partner

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

Please Log in to join the conversation.

  • hengkylintang
  • hengkylintang's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229760 by hengkylintang
Replied by hengkylintang on topic Blank Lines in Summary Page and End Page.
Thanks for you response.
i attached capture of source code in question i created as summary page/end message.
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #229761 by Joffm
Replied by Joffm on topic Blank Lines in Summary Page and End Page.
I assume that this is a "multiple question".
You insert a "<br/>" after each item, no matter if it is seected or not.
LimeSurvey does exactly what

You have use an IF to check if the item was selected.
If "yes", display it (with an appended <br/>),  if not, do nothing.

Either
Code:
{if(Q1_1=="Y",Q1_1.shown+'<br />',"")} {if(Q1_2=="Y",Q1_2.shown+'<br />',"")} {if(Q1_3=="Y",Q1_3.shown+'<br />',"")} {if(Q1_4=="Y",Q1_4.shown+'<br />',"")}{if(Q1_5=="Y",Q1_5.shown+'<br />',"")}
Code:
{join(if(Q1_1=="Y",Q1_1.shown+'<br />',""), if(Q1_2=="Y",Q1_2.shown+'<br />',""), if(Q1_3=="Y",Q1_3.shown+'<br />',""), if(Q1_4=="Y",Q1_4.shown+'<br />',""), if(Q1_5=="Y",Q1_5.shown+'<br />',""))}






If it is not a "multiple" question, but "multiple short text" you may check with "!is_empty".
I recommend not to use the "Inline HTML editor" but the "No HTML editor".
You select this in "My account / Personal settings"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: hengkylintang

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #229762 by Joffm
Replied by Joffm on topic Blank Lines in Summary Page and End Page.
There is an "or" missing between the two boxes.
So either you display several equations or you use only one.

This editor didn't allow me to edit.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • hengkylintang
  • hengkylintang's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229773 by hengkylintang
Replied by hengkylintang on topic Blank Lines in Summary Page and End Page.
it worked. But i have previous question (before summary answer question) with multiple choice type and has 180 subquestion. is there any other easier code or i must to write the all existing sub question codes?

I attach the result of summary response where some response have spaces, not really left-align.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #229774 by Joffm
Replied by Joffm on topic Blank Lines in Summary Page and End Page.
If the spaces are not entered by your equation, remove them with a function.
Read the manual.
ExpressionScript / Presentation / Implemented functions 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: hengkylintang

Please Log in to join the conversation.

  • hengkylintang
  • hengkylintang's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229778 by hengkylintang
Replied by hengkylintang on topic Blank Lines in Summary Page and End Page.
Thank You Joffm...

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose