close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Databridge2 Search a dropdown problem

Thread began 6/16/2019 3:36 pm by john70964 | Last modified 6/18/2019 6:25 pm by Ray Borduin | 38 views | 7 replies |

john70964

Databridge2 Search a dropdown problem

Hello Ray
I am trying to create a search > results > detail set with WA Database Data Assist Pages
In this process entering information in the fields gives a correct result except when I come to selection fields.
When a field is a selection from a drop down list the resultant search does not give the correct result.

I simplified the drop downs and created a List Values non-dynamic in this case a new or used value
and I wonder if you can please see where I am going wrong.

If New is selected I see a list including Used
Many thanks

John

Sign in to reply to this post

Ray BorduinWebAssist

Select elements work exactly like input elements. I think the issue you are having is that your select has name="0". Form elements can't have names that start with a number. Try renaming your select element and update the results page to use the new select element name when filtering the database.

Sign in to reply to this post

john70964

Thanks Ray
I have the drop down working now but unless I select New or Used I get no results.
If I select New or Used I get a correct result.
Please see attachment

Sign in to reply to this post

Ray BorduinWebAssist

Instead of:
<option value="0">New or Used</option>

you will need:
<option value="">New or Used</option>

Right now it would literally look for the value "0" in the database. Only blank values are ignored in searches.

Sign in to reply to this post

john70964

Thank for sorting that out for me Ray

The same list now includes different Categories and I have a Categories selection drop down.

In this Categories list I have tried to use the pointers you gave me in the "new or used" list.

But when I search just using the categories list I get all categories showing.

Can you see where I am going wrong again please?

Sign in to reply to this post

Ray BorduinWebAssist

This page looks fine... the issue might be on the results page. Can I see a copy of that as well.

Sign in to reply to this post

john70964

Thanks Ray
Please see PM

Sign in to reply to this post

Ray BorduinWebAssist

It looks like when you changed the input to a select you also changed it from name="Category1" to name="Category".... change the name back to Category1 on the search page and that should fix the problem.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...