Array question with blank column (divider)

More
2 months 2 days ago #220508 by Payek
Hey, is it possible to ad to array question extra column without radio buttons and header? I want to divide graphically last answer option as is on picture below.

 

I tried to add answer option with empty header, and then hide radio buttons, but with no luck - thanks in advance for any tips.

Payek

LS version  4.5.0+210412
Template Vanilla
Attachments:

Please Log in to join the conversation.

More
2 months 1 day ago #220514 by Joffm
Hi,
you may set the column width  and maybe a different background 
Have a look here 
forums.limesurvey.org/forum/design-issue...on-don-t-know#207174


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

Please Log in to join the conversation.

More
2 months 1 day ago #220539 by Payek
Thank you Joffm, I'm successfully used solution you linked!
But still "most wanted" is to add empty column beetwen last two answer options. I found some old workaround and trying to use it.
If you know how to
- add blank column or 
- remove radio buttons 
I'll be gratefull for direction.

Payek

Please Log in to join the conversation.

More
2 months 1 day ago #220545 by tpartner

If you know how to
- add blank column or 
- remove radio buttons 
I'll be gratefull for direction.

To remove the radios in the 4th answer column and the header label, add something like this to the question source:

<script type="text/javascript" data-author="Tony Partner">	
	$(document).on('ready pjax:scriptcomplete',function(){
 
		$('#question{QID} tr.ls-heading th:nth-child(5)').text('');
		$('#question{QID} tr[id^="javatbd"] .answer-item:nth-child(5) *').remove();
	});
</script>

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: Payek, Joffm

Please Log in to join the conversation.

More
2 months 1 day ago #220548 by Payek
Thank you very much Tony,
working perfectly and this is exactly what I tried to achieve! Last question - is it possible to change width of this blank column?

THX
Payek

Please Log in to join the conversation.

More
2 months 1 day ago #220553 by tpartner
That would require some style rules in the question source like this:

<style type="text/css" data-author="Tony Partner">
	#question{QID} col:nth-child(5) {
		width: 2% !important;
	}
 
	#question{QID} tr.ls-heading th:nth-child(5),
	#question{QID} tr[id^="javatbd"] .answer-item:nth-child(5)	{
		padding: 0 !important;
	}
</style>

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.

More
1 month 4 weeks ago #220670 by Payek
Thank you very much Tony,
working perfectly!

Payek

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now