web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer Service forum

Warning when date exceeded via JavaScript

(0) ShareShare
ReportReport
Posted on by

Hi,

I am looking for a Script that sets a Warning after a set date is exceeded.

For an example:

If the date in that Field has passed I want a Warning like "Customer did not pay"

8546.rechnungsdatum.jpg

The Fieldname is pz_rechnungsdatum

I am looking for something like that.

1067.092315_5F00_1312_5F00_DynamicsCRM2.jpg

I am not experienced with JavaScripts so I am happy to hear from you!

-Julian

Categories:
I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    you should use setFormNotification

    getValue

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/attributes/getvalue:750:50]

    Then compare the value you get and current date , if the date is exceeded , call below script

    setFormNotification

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/formcontext-ui/setformnotification:750:50]

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans