Normal Topic Radio Buttons (Read 1443 times)
j_hatton
Member
*
Offline


No personal text

Posts: 2
Joined: Oct 25th, 2004
Radio Buttons
Oct 25th, 2004 at 4:55pm
Print Post Print Post  
Where can I program functions for Radio buttons?  Their names aren't appearing in the Programing window.

I am looking to have each button alter the static information, which should be as easy as some IF THEN statements, but I can't seem to find the field names.
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Radio Buttons
Reply #1 - Oct 25th, 2004 at 5:03pm
Print Post Print Post  
The Radio Buttons are actually part of the Radio Group.

The programming will be done in the element for the Radio Button Group.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
j_hatton
Member
*
Offline


No personal text

Posts: 2
Joined: Oct 25th, 2004
Re: Radio Buttons
Reply #2 - Oct 28th, 2004 at 1:32pm
Print Post Print Post  
Excellent, so now I can get into the programming statements for my radios - here is the next part of that question.

What defines that field.  Meaning I have
RADIO BOX (named radio_box)
OPTION 1 (named opt_1)
OPTION 2 (named opt_3)
OPTION 3 (named opt_3)

When I want to address each individual option using an if then statement - do I use:
IF radio_box = opt_1  (meaning opt_1 has been selected) OR!
IF opt_1 = "Y"

I apologize if these seem very rudimentary questions, but I can't seem to find a damnable thing about how option buttons work in any of the manuals and I'm not very good at programming *laugh*

Thanks.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Radio Buttons
Reply #3 - Oct 28th, 2004 at 2:01pm
Print Post Print Post  
Quote:
Excellent, so now I can get into the programming statements for my radios - here is the next part of that question.

What defines that field.  Meaning I have
RADIO BOX (named radio_box)
OPTION 1 (named opt_1)
OPTION 2 (named opt_3)
OPTION 3 (named opt_3)

When I want to address each individual option using an if then statement - do I use:
IF radio_box = opt_1  (meaning opt_1 has been selected) OR!
IF opt_1 = "Y"


You should use:
if(radio_box = "opt_1")
{
   other_le = "Yup"
}

Note that "opt_1" is the label of the radio button. To assign the value, use:

radio_box = "opt_1"

Quote:
I apologize if these seem very rudimentary questions, but I can't seem to find a damnable thing about how option buttons work in any of the manuals and I'm not very good at programming *laugh*

Thanks.


No apology necessary.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged