set value of checkbox when NOT selected

Results 1 to 2 of 2

Thread: set value of checkbox when NOT selected

  1. #1
    Join Date
    Dec 1969
    Posts
    1,016

    Default set value of checkbox when NOT selected

    I have a form with several items for selection using checkboxes<BR>The form posts to a mailto.asp which uses a template to put form<BR>results in a sentence like manner:<BR><BR>[customer_first_name_filed] would like information on [question_field]<BR><BR>This however doesn&#039t look to clean when a checkbox is NOT selected.<BR><BR>How can I set a default (other than blank) value of a checkbox selection?

  2. #2
    Join Date
    Dec 1969
    Posts
    27

    Default RE: set value of checkbox when NOT selected

    Try finding the length of the checkbox and then setting it as a variable, eg:<BR>&#060;%<BR>If Len(Request.Form("Complaint"))= 0 Then<BR> complaint = 0<BR>Else<BR> complaint = 1<BR>End If<BR>%&#062;<BR>I don&#039t know if this will help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •