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=\"checkbox\"name=\"CheckBoxName\" value=\"" + @Text(@DocumentUniqueID) + "\" />
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
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=\"checkbox\"name=\"CheckBoxName\" value=\"" + @Text(@DocumentUniqueID) + "\" />
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