Skip to Content
author's profile photo Former Member
Former Member

HTML Checkbox Help

Hi, I created a web template and modified the HTML to add checkboxs in front of the rows. I did this using the table API.

When the user pushes the submit button I run a script to collect the selections.

I would now like to call another query with the user selections as a filter. If the user selected 10 or 20 materials I would like to call the query with these materials. I think it could be done using a command url, but don't know how to do this yet.

Can anyone help out?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2005 at 07:06 AM

    Hi,

    the easiest way would be to just do this via a correctly defined form

    for each row create a checkbox with correctly defined names and values

    <input type="checkbox" name="FILTER_VALUE_n" value="Yourvalue">

    You then just have to fill the filter value in the value properties and increase n always by one

    on the first row you also add a <form>-Tag with the required action

    and close it at the last row of the table.The form tag should have the action defined; you can add also hidden input fields into the form for addtional parameters.

    (You probably need a form anyhow. Because when the user checks for example 40 materials, you will get URL length restrictions)

    Heike

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Heike, Thanks for your response.

      I have already successfully added the button and checkboxes and have collected the values into a js array. Now I need to build? a command url to call the query I want with the selections.

      Can you help with this part or point me to an example?

      Thanks!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.