You are viewing limited content. For full access, please sign in.

Question

Question

How to put more than 4 radio button?

asked on December 15, 2017

Hi all,

 

I created a form with radio buttons.

Unfortunately, I can only put 4 radio buttons on the same line.

 

 

How can I create more?

 

Thanks in advance.

Regards

0 0

Answer

SELECTED ANSWER
replied on December 18, 2017 Show version history

Are you applying any of the custom CSS to those fields already? If so, remove it.

Then, add "cRadio" to the custom classes under advanced for that field, and put the following in your CSS

.cRadio .choice {
    width: 10%;
}

Adjust the width as you see fit. The problem right now is that it looks like some CSS is affecting the width of the input field instead of the container so it is pushing the text up against the radio button.

1 0

Replies

replied on December 15, 2017 Show version history

I think that's for the number of columns. You can put more radio buttons in the "Choices" section.

 

 

MoreRadioButtons.png
0 0
replied on December 15, 2017

Thanks you Raul,

 

this is what I did and it's not what I want.

 

Regards

0 0
replied on December 15, 2017 Show version history

Get the Field number for the radios buttons and then put this in the CSS section.

Update the below code to reflect your field ID.

#Field1-0, #Field1-1, #Field1-2, #Field1-3, #Field1-4 {display: inline-block; width: 20%; vertical-align:top;}

 

radio2.png
radio3.png
radio2.png (2.61 KB)
radio3.png (6.17 KB)
0 0
replied on December 15, 2017 Show version history

Try using side-by-side instead of columns, which won't force the column width, then if necessary you can fine tune the options with some custom CSS.

2 0
replied on December 15, 2017

Ty All

 

@Raul,

I tried your CSS, but :

1. My text disapear

2. My radio is still on 2 lines

 

 

Here my css

/* Button Radio */
#Field18-0, #Field18-1, #Field18-2, #Field18-3, #Field18-4
	{
      	display: inline-block;
      	width: 20%;
      	vertical-align:top
    }

 

0 0
replied on December 15, 2017 Show version history

The problem is that those CSS settings are causing the text to shift. If you look closely, you can see that the numbers are actually hidden behind the radio buttons.

I would start by changing the setting to Side-By-Side instead of columns to see how that looks, then decide on the next step after you get an idea of how it looks.

1 0
replied on December 15, 2017 Show version history

Jason is correct, it seems that you might have your settings of Mise en page to 4 columns. Change it to Side By Side

SideBySide.PNG
SideBySide.PNG (7.62 KB)
1 0
replied on December 18, 2017

Hi all,

 

Thanks for your help.

@Raul, you right, I changed the Layout to Side by side and it looks pretty good.

 

 

0 0
replied on December 18, 2017

Last question,

 

My radios are too tight.

 

How can I space them?

0 0
SELECTED ANSWER
replied on December 18, 2017 Show version history

Are you applying any of the custom CSS to those fields already? If so, remove it.

Then, add "cRadio" to the custom classes under advanced for that field, and put the following in your CSS

.cRadio .choice {
    width: 10%;
}

Adjust the width as you see fit. The problem right now is that it looks like some CSS is affecting the width of the input field instead of the container so it is pushing the text up against the radio button.

1 0
replied on December 18, 2017

Hi Jason,

 

Thanks ! Look better !

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.