Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7699203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:25:25+00:00 2026-05-31T22:25:25+00:00

I have a form with 3 text fields and 3 checkboxes. I had implemented

  • 0

I have a form with 3 text fields and 3 checkboxes. I had implemented VB Script validation so if a user submits the form and leaves something empty, the user will get back to the form WHILE having the fields filled in already. That said, this is not working for the chackboxes.

this is the code I am using for the checkboxes I am doing code in the value””

<input type="checkbox" name="ClaimSection_ActivityProof"  id="ClaimSection_ActivityProof"  value="<%=Request.Form("ClaimSection_ActivityProof")%>" style="width:20px" />
<input type="checkbox" name="ClaimSection_InvoicesPayableByPartner" id="ClaimSection_InvoicesPayableByPartner" value="<%=Request.Form("ClaimSection_InvoicesPayableByPartner")%>"  style="width:20px" />
<input type="checkbox" name="ClaimSection_InvoicesPayableByGFI" id="ClaimSection_InvoicesPayable" value="<%=Request.Form("ClaimSection_InvoicesPayable")%>" style="width:20px" />

To cut the sotry short, if a user checks 2 checkboxes, submits the form, and when he is redirected back to the form again, the checkboxes will remain checked. How I can do this please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:25:26+00:00Added an answer on May 31, 2026 at 10:25 pm

    name ( or group ) the checkboxes by the same name, ( I assume they all are related ClaimSection matter)
    So ,you can name them all as “ClaimSection”. Just make sure you assign each one its own unique values!

    Example;

    <input type='checkbox' name='ClaimSection' value='ActivityProof'>
    <input type='checkbox' name='ClaimSection' value='InvoicesPayableByPartner'>
    <input type='checkbox' name='ClaimSection' value='InvoicesPayableByGFI'> 
    

    With this naming, if your user checks more than 2 checkboxes, you will get the corresponding values in a comma separated fashion.
    So, if your user checks the last 2 checkboxes, you will get “InvoicesPayableByPartner,InvoicesPayableByGFI” in return.

    Now that you know this, it won’t be hard to set up a bunch of if branches to handle the checked vs not checked matter by comparing against what you got in the request(“ClaimSection”)

    Something like the following can get you in the right direction..

    dim submitted_ClaimSections 
    submitted_ClaimSections = request("ClaimSection") 
    submitted_ClaimSections = "," & submitted_ClaimSections & ","
    
    //handle the ActivityProof checkbox checked_or_not ="" 
    if  instr(submitted_ClaimSections,"," & "ActivityProof" & ",")>0 then       
        checked_or_not = "checked" 
    end if 
    Response.write "<input type='checkbox' name='ClaimSection' value='ActivityProof' " & checked_or_not & "> ActivityProof" 
    
    //handle the InvoicesPayableByPartner checkbox checked_or_not ="" 
    if instr(submitted_ClaimSections,"," & "InvoicesPayableByPartner" & ",")>0 then     
        checked_or_not = "checked" 
    end if 
    Response.write "<input type='checkbox' name='ClaimSection' value='InvoicesPayableByPartner' " & checked_or_not & "> InvoicesPayableByPartner" 
    
    
    //handle the InvoicesPayableByGFI checkbox checked_or_not ="" 
    if instr(submitted_ClaimSections,"," & "InvoicesPayableByGFI" & ",")>0 then
        checked_or_not = "checked" 
    end if 
    Response.write "<input type='checkbox' name='ClaimSection' value='InvoicesPayableByGFI' " & checked_or_not & "> InvoicesPayableByGFI"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with text fields, text areas and checkboxes. At the moment,
I have a HTML form that contains text fields, checkboxes, radiobuttons and a submit
Let's assume I have a form with these fields (HTML) <input type=text name=user[name] value=name/>
I have problem with TinyMCE editor. I have form with few text fields and
I have one form with several text fields and one button. When i enter
I have an order form with about 30 text fields that contain numerical values.
I have n number of text fields named in the form Question...... How can
I have an asp.net text form that contains numerous decimal fields that are optional.
I have a form where users can add input fields with jQuery. <input type="text"
I have a Symfony2 form with a variety of fields, including one optional text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.