Wednesday, 1 November 2017

Cognos: Horizontal Radio Button


Hi Guys,

You might have faced the challenged aligning radio button prompt horizontally as Cognos do not support this behaviour. I found the way to achieve this using Java Script code. Just follow below steps and you should be able to get the radio button aligned horizontally.

  •           Add an HTML Item just before the radio button prompt with below code

  
<STYLE>
#radio Div.clsCheckBoxRow{
display:inline;
whiteSpace:noWrap;
}
</STYLE>
<div id="radio" >
  •        Add the second HTML Item next to the radio button prompt with below code


</div>

  •        Run the report and you should be able to see the radio button aligned horizontally.

     




1 comment:

  1. Did it Work on Cognos Analytics 11.0.9 ?
    I seem to get strange error messages

    ReplyDelete