Skip 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.

Look-Up from last related record

Featured Replies

I have a solution that needs to auto-fill certain fields.

For example - a medical record: The first visit a patient answers YES to a question about smoking.

Then several months latter the patient returns and the same assessment is completed, the smoking field defaults (look up) and fill in YES in the smoking field, but then the patient says they stopped smoking so it needs to be changed to NO.

Then several months latter, same patient returns, same assessment, and NO is now the default (look up) for this question.

I've got lots instances of this type of issue... does anyone have a simple, straight forward solution.

Make a selfjoin:

Form::PatientID = Form 2::PatientID

AND

Form::SerialID > Form 2::SerialID

Sort the relationship on Form 2 side by SerialID, descending. Now the first related record is the previous form filled out for this patient.

  • Author

Make a selfjoin:

Form::PatientID = Form 2::PatientID

AND

Form::SerialID > Form 2::SerialID

Sort the relationship on Form 2 side by SerialID, descending. Now the first related record is the previous form filled out for this patient.

When I do this the look-up pulls form the first created related record reguardless of how I sort them. Am I doing something wrong?

It works for me, so probably yes.

lol, im sorry, i just had to laugh at that

  • Author

Yep - I was doing something wrong!

The sort has to be specified in the relationship definition. I was just going to the layout and doing a sort.

Man! This is a lifesaver - you can't imagine! Many thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.