HighDots Forums  

Radio buttons linked to data.

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Radio buttons linked to data. in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VegaLA
 
Posts: n/a

Default Radio buttons linked to data. - 11-01-2004 , 12:19 PM






Hi all, I have a webpage that returns a record for the user to edit with. All
the fields display the correct information for that record...except for the
radio buttons. They appear blank ! I have bound them to the correct field from
the correct recordset and have used the Dynamic button at the button to ensure
they are looking at the right fields but still no joy. I double checked that
the entry that is displayed actually has a value in the radio button and it
does. Testing the results from the recordset also confirms that in this
pareticular record some radio buttons are -1 and others 0 but when I preview
the page all the radio buttons are blank. Is there anything i'm missing ?
Thanks in advance, Mitch....


Reply With Quote
  #2  
Old   
Craig
 
Posts: n/a

Default Re: Radio buttons linked to data. - 11-01-2004 , 10:10 PM






Mitch,
this works

<form name="form1" method="post" action="">
<input <%If (CStr((rsArtIntro.Fields.Item("page").Value))
= CStr("-1")) Then Response.Write("checked") : Response.Write("")%>
type="checkbox" name="checkbox" value="checkbox">
</form>

Depending on the circumstances you may also have to try False, or false,
True, or true.

Craig


"VegaLA" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi all, I have a webpage that returns a record for the user to edit with.
All
the fields display the correct information for that record...except for
the
radio buttons. They appear blank ! I have bound them to the correct field
from
the correct recordset and have used the Dynamic button at the button to
ensure
they are looking at the right fields but still no joy. I double checked
that
the entry that is displayed actually has a value in the radio button and
it
does. Testing the results from the recordset also confirms that in this
pareticular record some radio buttons are -1 and others 0 but when I
preview
the page all the radio buttons are blank. Is there anything i'm missing ?
Thanks in advance, Mitch....




Reply With Quote
  #3  
Old   
VegaLA
 
Posts: n/a

Default Re: Radio buttons linked to data. - 11-02-2004 , 01:47 PM



Thanks Craig, the value that was required was True !!!

Cheers again for your help !

Mitch.......

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.