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.

<option value=""> returns correct number but empty

Featured Replies

I have a search page displaying three pull down menus. 2 of the menus are populated correctly based on the following code.

The third displays the correct number of selections but with no text. If I view the source html, option value="" is repeated for the correct number of entries in the database yet remains empty. Any clues? Here is the code:

<SELECT NAME="CategorySelectorField" >

<OPTION VALUE=""> - Select a Category -

[FMP-InlineAction: -db=Categories.fp5, -lay=Layout, -findall]

[FMP-Record] <option value="[FMP-Field:CategoryID]">[FMP-Field:Category] </option> [/FMP-Record]

[/FMP-InlineAction]

</SELECT>

<BR> <BR>

Thanks.

Are the fields "CategoryID" and "Category" on the Layout called "Layout"?

Good Luck.

Garry

  • Author

Hi Garry. Thanks for you response.

Yes they are. I double checked this as I thought it might be the problem. I even duplicated the layout and changed the code but no joy.

Adam

  • Author

All,

Just for the record, I have now resolved this. Garry was correct in it being a layout issue. The fields were on the layout but the database had not been enabled for web publishing (all my other ones had so I was very confused!). You do this by going to File > Sharing. Don't tear your hair out over the code like I did!

Thanks,

Adam

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.