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.

Featured Replies

open up Address Book and start editing someone's card. Select the Birthdate field and type "today" then hit Return.

Next try "tomorrow", "next week", "last month", "next Tuesday".

This code will replicate this functionality in FMP.

Create a date field that does a GetAsDate(TextField)

Create a field called "TextField" auto enter this calc, then uncheck the auto update.

Let([

field = textfield;

v_left = LeftWords(field;1);

v_right = RightWords(field;1);

words = WordCount ( field );

today = GetAsDate(Get(CurrentDate));

tomorrow = today+1;

yesterday = today -1;

thisday= DayOfWeek(today);

NextDayNum= Case(

v_right = "Sunday";1;

v_right = "monday";2;

v_right = "tuesday";3;

v_right = "wednesday";4;

v_right = "thursday";5;

v_right = "friday";6;

v_right = "saturday";7);

LastDayNum= Case(

v_right = "Sunday";7;

v_right = "monday";6;

v_right = "tuesday";5;

v_right = "wednesday";4;

v_right = "thursday";3;

v_right = "friday";2;

v_right = "saturday";1);

weekday = Case(NextDayNum ? 1 and NextDayNum ? 7;1);

nextmatrix = Choose(thisday; "";

"7

Date.fp7.zip

  • 3 months later...

weekday = Case(NextDayNum ? 1 and NextDayNum ? 7;1)

Stephen,

What does the above line do in the calculation?

It is most likely the <= symbol, which doesn't work with the HTML.

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.