Buy Cheap Software - Discount Software
pimpMyJoomla Board
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Radio Buttons (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Radio Buttons

#114
Jilic (User)
Expert Boarder
Posts: 36
graphgraph
Radio Buttons 2007/05/10 11:49 Karma: 0  
I would like some help regarding the use of Radio Buttons.

I can't figure out how I can use them.
Can I completely "easy program" them in the fields?
or is there another "easy program" way in the backend? (where do I need to pout it then?)
or do I need to do some "programming" in the PHP files? (using dreamweaver?)

I'm pretty new at this forms thing. But I need it for a site that I'm making. But rest asure.... I am a fast learner.

Thanks in advance.
Jilic.
  The topic has been locked.
#115
alex (Admin)
Admin
Posts: 301
graph
Re:Radio Buttons 2007/05/10 11:56 Karma: 8  
No. All you have to do is to add a new Field, change it's type to radio, and add the same field id for all of the group radio, with different default values. For the label, you can use the Title or the Description. Let me know.
  The topic has been locked.
#116
Jilic (User)
Expert Boarder
Posts: 36
graphgraph
Re:Radio Buttons 2007/05/10 12:13 Karma: 0  
Ah, okay, Thanks for the mega quick reply.

I didn't know it needed the same ID. It was that simple

Great that works.

1 other questions.
- is it possible to redirect after submitting, regarding to what they choose at the radio button?

Say the choose for a bus, that it redirects them to the page with the bus info. and if they choose train, that they'll get the train page.


Thanks again!

[EDIT!]
Extra Question. How can I make, the radio buttons mandatory, without them coliding/give error?

Thanks...

Post edited by: Jilic, at: 2007/05/10 13:08
  The topic has been locked.
#117
alex (Admin)
Admin
Posts: 301
graph
Re:Radio Buttons 2007/05/10 13:13 Karma: 8  
Hm, interesting Idea(the custom redirecting). I will add it to the suggestion box, and add it in the 1.0.2 for sure. You will be able to add {radiobutton} custom field to the return_url also. Thanks!

For the mandatory(hum).. the only way you can do that now is to add checked to the additional attributes of the first radio.
  The topic has been locked.
#126
Jilic (User)
Expert Boarder
Posts: 36
graphgraph
Re:Radio Buttons 2007/05/10 14:00 Karma: 0  
Still strugling a bit with it, but the main thing works.

did not quit get what you ment with the checked part. But I'll try to figure that out.

right now I got 3 things.

- Transportation (hidden)
- Bus O (Ma~Thu)
- Train O (Fri~Sun)

All have the same ID.
So Guessing I need to change the ID of the "transportation" text.
and add something at Additional Attr. That something is the check...


=======================================
=======================================


The redirect idea can also be used for the select part. We didn't know to use radio buttons or the pulldown (select) menu.

So therefor I think.
If [formID] = [input] then redirect [URL]
or If [formID] = [input] then redirect [URL]
else redirect [URL]

((Or am I thinking MUCH to simple again.))
  The topic has been locked.
#138
Jilic (User)
Expert Boarder
Posts: 36
graphgraph
Re:Radio Buttons 2007/05/10 16:00 Karma: 0  
I think too difficult sometimes.

I tried so much,... and all it need was the word Checked. Whahahaah
I tried many things. als with a dot .checked, then tried without.

Anyways.
You help was super.
I'll be back
hope to help someone, instead of all the question! hihihhi.

J.
  The topic has been locked.
#140
alex (Admin)
Admin
Posts: 301
graph
Re:Radio Buttons 2007/05/10 16:37 Karma: 8  
Good I'm glad you figured it out.
  The topic has been locked.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop