简体   繁体   中英

Dynamics CRM setFormNotification in Quick Create Form

I've made a Javascript to prevent from saving a Lead if the fields Phone Number, Mail or Business Phone are empty. If any of these fields are empty, I use a setFormNotification to let the user know it's not possible to save.

My problem arises when I uses the same code for Lead Quick Create Form and the setFormNotification do not shown. When I run debug the setFormNotification shows a value of false, but I can't seem to find anything in the SDK that says setFormNotification aren't avaible for Qick Create Forms.

Another strange thing is that the Quick Create Form shows a form notification if any of the required fileds aren't filled in, so it shows that form notification could be shown, but in my case: not from my JavaScript.

Does anyone know why this occurs? And does anyone know how to show a Form Notification in a Quick Create Form?

As per this blog , It seems that setFormNotification does not work for Quick Create Forms. I still have to validate this with CRM 2015 Forms.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM