mljonzs
Posts: 124
|
| Posted: 06/06/2007, 9:49 AM |
|
Hi. I thought I had asked this question in the past but I cannot seem to locate any answers so I will ask again.
Besides using the CodeCharge Required property to check to see if a value has been selected in a radio grouping, how can I do this? I try using javascript in a before submit validation routine but I can't figure out that syntax to be able to see what, if any, value has been selected.
Can anyone help me? Users prefer to see javascript pop-up windows with informatino rather than having the standard CodeCharge Error display.
Thanks!
mlj
_________________
What does not begin WITH God, will end in failure!
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 06/11/2007, 10:25 AM |
|
http://www.hscripts.com/tutorials/javascript/dom/radio-events.php http://www.javascriptkit.com/javatutors/radiocheck.shtml
Should get you on your way.
You will have to iterate through the elements of the radiobox and look for a
"checked" state.
"mljonzs" <mljonzs@forum.codecharge> wrote in message
news:64666e57e2c593@news.codecharge.com...
> Hi. I thought I had asked this question in the past but I cannot seem to
> locate
> any answers so I will ask again.
>
> Besides using the CodeCharge Required property to check to see if a value
> has
> been selected in a radio grouping, how can I do this? I try using
> javascript
> in a before submit validation routine but I can't figure out that syntax
> to be
> able to see what, if any, value has been selected.
>
> Can anyone help me? Users prefer to see javascript pop-up windows with
> informatino rather than having the standard CodeCharge Error display.
>
> Thanks!
> mlj
> _________________
> Happy coding!
> mljonzs
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
mljonzs
Posts: 124
|
| Posted: 02/20/2008, 9:46 AM |
|
update.... In case anyone else out there is struggling with validating and working with RadioButtons, I finally found some javascript code that works to check the value of a radioButton in CodeCharge
This URL is where I found the javascript methods that I needed: http://www.somacon.com/p143.php
to get the checked value from the CCS form I used the following javascript code:
var def = getCheckedValue(document.forms["SubProjects"].elements["bQuickHit"]);
where bQuickHit is the name of my RadioButton element on the SubProjects from of my code charge page....
_________________
What does not begin WITH God, will end in failure!
|
 |
 |
|