Skip to main content
March 9, 2007
Question

How to create a search all value on list

  • March 9, 2007
  • 1 reply
  • 166 views
I am trying to create a form which will enable user to select an item on a list to filter records, or allow him to not select anything and see all records.

I created a generic form with one list on it and a submit button. Values are:

Item Label Value
Select All-- (I left this blank)
Bicycles--Bicycles
Motorcycles--Motorcycles
Skateboards--Skateboards

My results page seems to be okay. I created a recordset and a dynamic table. In recordset, the default varable that was created shows Name: colname
Type: Text
Default value: -1
Runtime Value: $_POST['2']

Problem is that when I select one of the items from the list on the form (ex. skateboards), my results page shows all records for skateboards. When I select "Select All" from the list, I don't receive any records. What can I do to allow user not to enter any value and have him receive all records?

Thanks in advance....
This topic has been closed for replies.

1 reply

March 9, 2007
I found the answer for all of you trying to do the same thing:
In your "Select All" value, put %
then, select 'contains' instead of = in your filter. That should do it! Hopefully this helps someone!