Welcome! Log In Create A New Profile

Advanced

radio button returned value

Posted by emirhan 
emirhan
radio button returned value
January 27, 2009 03:00PM
Hi all,

I used radio button and there are two options in the radio button, if user choose option 1, I need to save "yes", if user choose option 2, I need to save "no" to the database.But in the database, 1 or 2 is saved.I need to change it as "YES" or "NO". There is no glink addition like combo_box. How can I do that?

Thanks
Emirhan
Stefan Bentvelsen
Re: radio button returned value
January 27, 2009 04:18PM
Hi Emirhan,

you have to remove the automatic link from the control to the analysis. Then just before the HAdd() or HModify() of the record you can add:

YourFile.YourItem=radiobutton-name=1 ? "YES" ELSE "NO"

this should do the job.
emirhan
Re: radio button returned value
January 27, 2009 04:25PM

Thanks Stefan,

Best Regards, Emirhan
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: