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.

adding Field names to sort

Featured Replies

I took over maintaning the database but have been stuck with one problem. When trying to do a sort using FM online, I dont know how to add field names to the list to choose from. I know how to add items to the "sort order" but not "fields".

A working example of the -sort and -sortfield tags can be found in the Sample Files Forum in the example of "CDML -Op values and Symbols demo". The demo is presented in Pro5, which db files are convertable to Pro6. The format files were handwritten in SimpleText and may have experienced a conversion of some sort through compression. You can drag and drop to NotePad and they will probably open there. Otherwise drag and drop to your browser and View Source to see/copy the code. Lot's of other stuff in the demo as well. Good luck.

It's been a while, but I think there are instructions for use in the thread.

Howdy! Here's a clipping from the CDML reference database that may help if you are using Custom Web Publishing...

--ST

Specify sort field using a form action

<form action="FMPro" method="post">

<input type="hidden" name="-DB" value="contacts.fp5">

<input type="hidden" name="-Format" value="format.html">

<input type="hidden" name="-SortField" value="Last Name">

<input type="hidden" name="-SortField" value="First Name">

<input type="submit" name="-FindAll" value="Sort by First Name">

</form>

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.