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.

Performing search using altered value list

Featured Replies

Currently there is a drop down list with each month range in it.

EX: 1/1...2/1

2/1...3/1

And so on.

This is used for searching for patients whose baby due date is in that month. HOWEVER, the year stays as the current year when the search is done.

What I'm looking at is taking the 1/1...2/1 and adding the appropriate year to it and putting that in the EDD field and doing the search on that.

So if it is October and 1/1...2/1 is selected in the drop down list, the date in the EDD box is 1/1/2005...2/1/2005.

Any suggestions will be appreciated. Basically I'm not sure how to get the data selected, I think after that I can dynamically create the string to go in the EDD field.

How about Insert Cacluated Result [EDD, DateToText(Date( LeftWords( range, 1 ), MiddleWords( range, 2, 1), Year(Status(CurrentDate)) + (Month(Status(CurrentDate)) > TextToNum(LeftWords( range, 1 ))) )) & "..." &

DateToText(Date( Substitute( MiddleWords( range, 3, 1 ), ".", "" ), MiddleWords( range, 4, 1), Year(Status(CurrentDate)) + (Month(Status(CurrentDate)) > TextToNum(LeftWords( range, 1 ))) ))]?

  • Author

That is a start for sure. I think I will have to make a new field that has like NEXT YEAR in it then do an IF the current month is greater than the requested month NEXT YEAR is added on other wise use current year.

That's what the + (Month(Status(CurrentDate)) > TextToNum(LeftWords( range, 1 ))) portion does.

  • Author

Ahhh. I haven't worked that much with the value lists, so is "range" the selected value?

Yes. Range would be whatever field is formatted as the list.

  • Author

Gotta work on this. Still doesn't work but I think it is because the way the field is set up and not the calculation.

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.