0
Users want to get notified when someone changes a date, easy! But they don't want the notification first time the date is set.

Is it possible to do?

So, when date goes from empty to something, no notification. When date changes from one value to another, send notification.
Responses (2)
  • Accepted Answer

    Tuesday, March 12 2019, 07:10 PM - #Permalink
    0
    If the date field is being changed on a form by a user, you could use a combination of Form Actions and JavaScript to detect when the Date field is changing from one valid date to another.

    If it's happening in a Transition that doesn't involve a form then you can use AppScript or ModScript in post-transition context to compare the value with the field's DB value (see "Field . GetDbValue()")

    I think in either case, as David noted, you'll need to set a boolean field that indicates that the date field changed. That field is used in the Notification Rule.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 12 2019, 04:26 PM - #Permalink
    0
    There doesn't look to be anyway of doing this with standard notification rules as the only option is for when the date field changes.

    There might be a way of doing it with scripting, but can't help you with that.

    My only other suggestions are a but "ugly". Add a field (perhaps a check-box) and use a form action to set it when the date field changes from one value to another. Or just include the last change history to the email notification to show what the change was - and users could just ignore/delete the email where it changed from None.
    • Mikaela Nilsson
      one week ago
      Thank you both for your input!
      David, when you write "just include the last change history to the email notification", can you explain how I can do that? That was one of my thoughts too but couldn't find how to include the old value of the date field.
    The reply is currently minimized Show
Your Reply