chrisb
Posts: 7
|
| Posted: 12/06/2005, 10:53 PM |
|
Hi. I have a couple of radio buttons with the same problem - they display with the last value checked, even though the field's data contains a different value.
An example of the control:
Name: Lesson_held
Data Source Type: ListOfValues
DataSource: 1;Held;2;Not required;3;To be made up;4;Will not be made up
Bound Column: (blank)
Text Column: (blank)
Data Type: Integer
Default value: (blank)
Content: Text
The value of Lesson_held is 1 (an integer). I also have this displayed as a label which displays 1, just to confirm things.
The option checked when the screen displays is the last one: 'will not be made up'.
Thanks.
|
 |
 |
Edd
Posts: 547
|
| Posted: 12/07/2005, 3:26 AM |
|
chris,
The "Content:" must be HTML for radio buttons.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
chrisb
Posts: 7
|
| Posted: 12/07/2005, 4:05 AM |
|
Thanks Edd, but doesn't seem to fix it. In fact this is occuring in a few places, and all but one already had content of HTML.
The values being stored are ok, when the record is inserted/updated. Just doesn't seem to display correctly.
|
 |
 |
Edd
Posts: 547
|
| Posted: 12/07/2005, 4:56 AM |
|
Chris,
I use Radiobuttons everywhere and never seem to have a problem.
What is your environment?
Can you try putting a label next to the radiobutton to display it's returned value?
Is it only on one form ALL all forms?
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
chrisb
Posts: 7
|
| Posted: 12/07/2005, 5:10 AM |
|
Environment is CCS3, XP, ASP, Access.
Yep, I put a label next to the radio button and it displays the returned value ok. For example value is 2, but the fourth radio button is active.
This is happening on 3 different forms.
I've just looked at the final HTML displayed in the browser:
<td>
<input type="radio" checked value="1"name="lesson_held">Held<br>
<input type="radio" checked value="2" name="lesson_held">Not required or holiday<br>
<input type="radio" checked value="3" name="lesson_held">To be made up<br>
<input type="radio" checked value="4" name="lesson_held">Will not be made up<br>
2</td>
So, as far as I can see (and understand), all of the values are marked as checked. You can see that the 2 displayed is the label for the value.
|
 |
 |
chrisb
Posts: 7
|
| Posted: 12/07/2005, 3:34 PM |
|
matheus sent a private message to you.
Subject: forum question
------------------------------------------------------------
Forums could'nt post.
<!-- BEGIN RadioButton test --><input type="radio" value="{Value}" name="{test_Name}" {check}>{Description}<!-- END RadioButton test -->
Change to:
<!-- BEGIN RadioButton test --><input type="radio" value="{Value}" name="{test_Name}" {Check}>{Description}<!-- END RadioButton test -->
Must work now.
|
 |
 |
chrisb
Posts: 7
|
| Posted: 12/07/2005, 3:52 PM |
|
Thanks. Should have worked, but still didn't - the Check value just wasn't being set. I ended up deleting the radio buttons and re-creating. Works ok now. I suspect this all started when I converted the buttons to/from text or list boxes but I can't repeat it now. Who knows!
What was appearing in the HTML was:
<!-- BEGIN RadioButton lesson_held --><input type="radio" Checked value="{Value}" name="{lesson_held_Name}">{Description}<!-- END RadioButton lesson_held --></p>
What appears now, correctly, is:
<!-- BEGIN RadioButton lesson_held --><input type="radio" value="{Value}" name="{lesson_held_Name}" {Check}>{Description}<!-- END RadioButton lesson_held --></p>
Thanks for your suggestions.
|
 |
 |
|