Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox not checked

Status
Not open for further replies.

vinturn

MIS
Joined
Sep 14, 2003
Messages
3
Location
SG
Hi everyone,

i have a form with 2 views. One is for the checkbox and the other is for radio buttons. The checkbox view is done using the @DbColumn method while the radio buttons used the embedded view method. Both the radiobuttons and checkbox are done using HTML like this :

Example for checkbox :
<input type=\&quot;checkbox\&quot;name=\&quot;CheckBoxName\&quot; value=\&quot;&quot; + @Text(@DocumentUniqueID) + &quot;\&quot; />

I'm using JavaScript forms.submit( ) to save the forms. The problem is:
after saving the form, when i tried to view back what I've saved, the checkbox and radiobuttons are no longer checked , but I've been able to get their values.

How can I retain the checkbox and radio button to be checked in the dislay mode after saving???

P/S: I've tried the JavaSript method :
for(i=0;i<document.forms[0].CheckBoxName.length; i++)
{
if(document.forms[0].CheckBoxName.checked)
{
document.forms[0].CheckBoxName = true;
}
}

i placed this code in my Submit button (using javascript)

But it is still not working. The checked on the checkbox and radio button keep on dissapearing when i view it from the VIEW.
Please help!

Thanks in advance.
Vinturn

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top