Welcome to the LimeSurvey Community Forum

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

Hide column in array

More
7 years 5 months ago #166680 by AlessandraAndreotti
Unfortunately I can't change column in row because the questionnaire is bonded.

I've attached the example in one of my previous answers. Anyway, I've attached it another time.

Thanks.
The topic has been locked.
More
7 years 5 months ago #166682 by Joffm
Replied by Joffm on topic Hide column in array
Hi,

I tried your example.

If I don't give a third answer in the first question and remove the <p> tag it works.


If I do not remove the <p> tag it does not.



And the answer text should be like {D3_D3A.shown}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
More
7 years 5 months ago #166686 by AlessandraAndreotti
Hi!
Thank you very much for your reply! Now it works! :)

I've used the command <p style="text-align: center;"> </p> in order to centered the titles of the columns...
How can I do this without the <p> tag?
Thanks in advance :)
The topic has been locked.
More
7 years 5 months ago #166691 by Joffm
Replied by Joffm on topic Hide column in array
Hi, Alessandra,
well, it's obvious, if you - and I - think about it.
The plugin is called "hideEmptyColumns". Even if the text {Q1_SQ001...} is empty, there is still the tag. So the column is NOT empty.

Okay, probably you can center the text by css.
Either insert into the question text (in source code mode)
Code:
<style type="text/css">
th.answertext {
  text-align:center !important;
}
</style>
or if you want to use it generally add it to the end of "template.css" without the <style> tafgs

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
7 years 5 months ago #166699 by AlessandraAndreotti
Thank you very much for your useful reply.
Best
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose