Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Created a table with radio buttons in different cells

Avatar

Former Community Member

I have created a table with radio buttons in different cells. Now i am trying to group them together but cant.

Header 1Header 2Header 3Header 4Header 5Header 6
radio buttontexttextradio buttontext
radio buttontexttextradio buttontexttext
radio buttontextradio buttontextradio buttontext

My table looks similar to this table. What i would like to get from this, is to have only one checked answer and the rest should be clear. Right now I can check them all. 

9 Replies

Avatar

Level 5

I believe you can't group Radio buttons which are in different cells.

on click of one Radio button you uncheck or clear all the remaining radio buttons by writing few lines of script.

Sample script

on click Radio Button

if(radioButton1.rawValue == 1){

radioButton2.rawValue =0;

radioButton3.rawValue = 0;

}

Vjay

Avatar

Former Community Member

Do you have an example of the script. I am new to Livecycle. Thank you

Avatar

Level 5

I have uploaded the sample document in the below path have a look.

https://workspaces.acrobat.com/?d=BFggp-JH*xO*psgkWvWxfA

vjay

Avatar

Former Community Member

Thank you

Looks great but it's not working for me yet

Avatar

Former Community Member

Do I need to write the code for each button?

Avatar

Level 5

yes u need to write on each and every button.as i did in the sample.

Vjay

Avatar

Level 5

If you dnt want to write scipt on each and every button.Create helper and pass radio button label and based on that uncheck remaining Radio buttons.This is the other way u can do same.

Vjay

Avatar

Former Community Member

Thank you but not sure how to do this? How to create a helper?