Schedule Local Notifications On A Mobile Device

This guide explains how to use the “Local Notifications” field to schedule a notification on a mobile device.

In this example, the user selects a date and time in the “Reminder Date & Time” field and taps the “Set Notification” button. The notification is then scheduled locally on the device and displayed at the selected date and time.

We will use a Date and Time field to define when the notification should appear, a Local Notifications field to configure the notification, and a Field Update Button to schedule it.

1. Initial Setup:

  • Drag and drop a “Date and Time”, a “Field Update Button”, and a “Local Notifications” field onto your form.
  • Rename the fields as needed.
image

2. Configure The “Field Update Button” Field:

  • Click the pencil icon on the “Field Update Button” field.
  • Under “Field Updates”, configure:

Device Reminder | event | run

image

Note: This will run the “Device Reminder” Local Notifications field when the user taps the button.

Optional: You can also use the “Field Update Workflow” field to trigger the “Local Notifications” field.

  • Add the Button Label.
image

3. Configure The “Local Notifications” Field:

  • Click the pencil icon on the “Local Notifications” field.
  • Select the “Reminder Date & Time” field under the “Notification Source Field” option.
image

Note: This tells the Local Notifications field to use the value selected in the “Reminder Date & Time” field when scheduling the notification.

  • Add “Notification Title”: Enter the title that should appear in the device notification.
  • Add “Notification Body Template”: Enter the message that should appear in the notification.
image
  • Add “Notification Scheduled Success Message”: Enter the message that should be displayed after the notification has been scheduled successfully.
  • Add “Notification Scheduled Failure Message”: Enter the message that should be displayed if the notification cannot be scheduled.
image

4. Test The Notification On Your Mobile Device:

  • Open the form on your mobile device and test the setup.
image
  • Select a future date and time in “Reminder Date & Time”.
image
  • Tap “Set Notification”.
image
  • The following confirmation message should be displayed:
image
  • At the selected date and time, the configured notification should appear on the device.
image
Example Form.json4.5 KiB

For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂