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.

Required field in search screen

Featured Replies

My online database is launched and working...Hooray (and thanks for the help!!)

I have another question: How can I get a required field to work in the search screen?

This is what I have for the field:

Enter Species (Required)???

<INPUT TYPE=hidden NAME="-op" VALUE=eq>

<SELECT NAME='Species'>

<OPTION VALUE="-"> [FMP-VALUELIST: Species, LIST=Species]

<option [FMP-ValueListItem]> [FMP-VALUELISTITEM] [/FMP-VALUELIST]

</SELECT>

I thought by making OPTION VALUE="-", it would default to that value if no other value was selected. But, the search is working even if Species is not entered and I don't want it to!!

The search page is at www.herdease.net:591/search.htm.

Thanks.

You can use some Javascript to test if a selection has been made before the Form is submitted.

You could also try this:

Enter Species (Required):

<INPUT TYPE="hidden" NAME="Species" VALUE="==">

<SELECT NAME='Species'>

<OPTION VALUE="">Select a Species</option>

[FMP-VALUELIST: Species, LIST=Species]

<option value="[FMP-ValueListItem]">[FMP-VALUELISTITEM]</option>

[/FMP-VALUELIST]

</SELECT>

Good Luck.

Garry

  • Author

Thanks, Garry. I think this is what I was trying to do with the OPTION VALUE="-"; preset a value that I know would not be in the field, and that would create a no records found result. Just didn't have it in the right place!

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.