Customer login  |   Contact us
Home Company Products Support Purchase
Forum Home » Survey software » Opinio

Topic: Matrix suggestion
Replies: 3   Pages: 1   Last Post: Apr 1, 2010 11:42 AM by: torgeir


Back to Topic List Back to Topic List
Replies: 3   Pages: 1  
Simon

Posts: 62
From: London
Registered: Aug 26, 2005
Matrix suggestion
Posted: Nov 18, 2009 2:25 PM
  Reply

I like the ability to control the look of each cell within a matrix e.g. background colour and text. However, this becomes a chore when creating a set of matrix questions with alternating light and dark shading on each row.
Would it be possible to create an option to achieve this effect quickly for each matrix question e.g. by selecting a style for header (top) row and a primary and secondary for each alternate row.

torgeir

Posts: 1,090
From: Oslo
Registered: Jun 20, 2002
Re: Matrix suggestion
Posted: Nov 19, 2009 8:51 PM
  Reply

We should have a feature for this, yes. It's on our list of things todo.

One alternative is to add some javascript to do this. Add the following to a text somewhere (header, for example). This code MUST be on a single line (line breaks will be converted to html br-tags. In other words, remove ALL line breaks before pasting this into a survey.


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script language="javascript">
$(document).ready(function() {
$('.matrix tr:odd').css("background-color", "#BBBBBB");
});
</script>


Make sure no cells or cell groups have colors set, as this will override the above code.

kelly7898

Posts: 1
Registered: Mar 30, 2010
Re: Matrix suggestion
Posted: Mar 30, 2010 8:58 AM
  Reply

Thank you for the post.
Hi guys, Im a newbie. Nice to join this forum.

_________________
Watch Clash Of The Titans Online Free

torgeir

Posts: 1,090
From: Oslo
Registered: Jun 20, 2002
Re: Matrix suggestion
Posted: Apr 1, 2010 11:42 AM
  Reply

keep in mind that the first line of the code above is not necessary if you are running 6.3 or later. jQuery is already included from this version and later.



© 1998-2009 ObjectPlanet, Inc. Øvre Slottsgate 5, 0157 Oslo, Norway Tel (+47) 2233 3360 | Fax (+47) 2233 3361