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.

another email question

Featured Replies

I'd like to thank AndyGaunt for helping me with my empty email field worries.

My next email woe is that I would like to regularly email students who have had one unexplained absence to warn them about it. I have set up a field called First absence warning sent, and I would like the script to input the current date into that field if they have not already been sent this warning, but if that field is not empty the script should just skip that record and move to the next one.

I've been racking my brain trying to figure it out but I can't. The main script that I have worked out is below. I'd be grateful for any help.

 Perform Find [ Specified Find Requests: Find Records; Criteria: Students::CountUnAbsences.calc: "=1" ] [ Restore ] 

Go to Record/Request/Page [ First ] 

Loop 

Perform Script [ "1 absence email" ] 

If [ IsEmpty ( Students::First absence warning sent ) ] 

Insert Current Date [ Students::First absence warning sent ] [ Select ] 

[color:"red"]Else??[/color]

End If 

Go to Record/Request/Page [ Next; Exit after last ] 

End Loop 

Halt Script  

Thanks!

You don't need an else if you just want to skip the records.

Perform Find [ Specified Find Requests: Find Records; Criteria: Students::CountUnAbsences.calc: "=1" ] [ Restore ]

Loop

Perform Script [ "1 absence email" ]

If [ IsEmpty ( Students::First absence warning sent ) ]

Set Field[ Students::First absence warning sent; Get(CurrentDate) ]

End If

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

Note I removed superfluous steps like the Go to Record/Request/Page [First] after a Perform Find and a Halt Script at the end of a script.

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.