Forums

ASP

This topic is locked

ASP Forms - Please Help

Posted 04 Dec 2002 13:12:14
1
has voted
04 Dec 2002 13:12:14 Lee Smith posted:
I have a Form that I want the user to click on a tick box, that will change the value of a hidden field. Is this possible?

Lee Smith

Replies

Replied 04 Dec 2002 19:03:43
04 Dec 2002 19:03:43  cady replied:
sure just set the value of the hidden field to be equal to the chk box.

like:

forms.document.hiddenfield.value = forms.document.chkbox.value

so when the form is submitted it will pass the same value, although this is fairly redundant. why not just directly hit the check box?
Replied 05 Dec 2002 11:39:00
05 Dec 2002 11:39:00 Lee Smith replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
sure just set the value of the hidden field to be equal to the chk box.

like:

forms.document.hiddenfield.value = forms.document.chkbox.value

so when the form is submitted it will pass the same value, although this is fairly redundant. why not just directly hit the check box?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Lee Smith
Replied 05 Dec 2002 11:57:58
05 Dec 2002 11:57:58 Lee Smith replied:
Thanks for the reply, sorry about the reply with the quote and nothing else. Our Internet connection dropped earlier. I have tried what you suggested but it didn't work. The reason that I need to use both fields is because it is part of a three stage customer complaint system. So if the user clicks on the 'Rejected' tick box it also needs to set the Status to 'Closed'.

The following is what I have been trying;

'If the rejected tick box is ticked then change the status to rejected

If Request.Form("rejected" = True Then
Form.field("strStatus".Value = "Rejected"
End IF

Lee Smith

Reply to this topic