Author Topic: Radio Button Group: horizontal display  (Read 46421 times)

Offline CognosPaul

  • Global Moderator
  • Statesman
  • *****
  • Join Date: Jan 2009
  • Posts: 1,872
  • Forum Citizenship: +267/-1
    • Paul's Cognos Blog
Re: Radio Button Group: horizontal display
« Reply #30 on: 14 Aug 2018 01:38:53 pm »
What error are you getting? Which script are you using? Which version of Cognos? Are you on interactive mode?

Offline rockytopmark

  • Statesman
  • ******
  • Join Date: Jul 2006
  • Posts: 550
  • Forum Citizenship: +46/-0
Re: Radio Button Group: horizontal display
« Reply #31 on: 09 Mar 2021 08:55:53 am »
Update on this topic.  Just worked with CognosPaul on a different method that works and is easier to implement.

Instead of a custom control, it involves
  • Inserting the prompt control into a block
  • inserting an HTML Item in the report that will style the control/block

name the block (you can name whatever you want but make sure you use same name in HTML item doing the styling):
inlineRadio

HTML item code:
<style>
[lid*="inlineRadio"] div{
    height: inherit !important;
    min-height: inherit !important;
    display: flex ;
    width: 100% !important;
    position: inherit !important;
    border: none;
    margin: 0px !important;
 }
</style>