Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

searching with 2 or more pop-up fields

Featured Replies

Does anybody have the exact syntax required to do a FIND based on 2 or more pop-up lists? I have two pop-up lists on my website. The first has the following code:

<select name ="select" size="1">

<option>choiceone</option>

<option>choice2</option>

<option>choice3</option>

</select>

The second pop=up list has this code:

<select name ="select" size="1">

<option>apples</option>

<option>pears</option>

<option>grapes</option>

</select>

What code do I attach to a "search" button so it will search on the two selections above?

Thanks

You can include a:

<input type="hidden" name="-lop" value="or">

Hope this helps.

Garry

  • Author

Im still a bit confused with the overall syntax.

I'm using a form like this: (I copied this from a manual so I'm not sure that everything in it applies)B)

<FORM ACTION="FMPro" METHOD="POST">

<INPUT TYPE="hidden" NAME="-db" VALUE="digital assets.fp5">

<INPUT TYPE="hidden" NAME="-lay" VALUE="searchlayout">

<INPUT TYPE="hidden" NAME="-format" VALUE="searchresults.htm">

<INPUT TYPE="hidden" NAME="-error" VALUE="error.htm">

<INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-CurrentToken]">

<INPUT TYPE="hidden" NAME="SUBJECTS::sex" VALUE="[FMP-CurrentToken]">

then, I have several pop-up windows:

<select name="ETHNICITY BOX" size="1">

<option selected>-Choose-</option>

<option value="African-American">African-American</option>

<option value="African-American/Japanese/Caucasian">African-American/Japanese/Caucasian</option>

<option value="Asian">Asian</option>

<option value="Asian/Caucasian">Asian/Caucasian</option>

<option value="Hispanic/Caucasian">Hispanic/Caucasian</option>

<option value="Mexican-American/Caucasian">Mexican-American/Caucasian</option>

</select>

and then my search button:

<input type="submit" name="-find" value=" Search ">

but I'm not getting any results. I know its just a matter of putting it all in the right order

Order is not a problem. Looking at what you now have you do not need "-lop=or".

To see what is happening go to the database after your attempt to search and check the search details with "Modify Last Find" from the "Records" menu. This will give you an idea of what is being searched for.

Good Luck.

Garry

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.