简体   繁体   English

快速创建表单中的Dynamics CRM setFormNotification

[英]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. 如果“电话号码”,“邮件”或“商务电话”字段为空,我已经编写了一个Javascript来防止保存潜在客户。 If any of these fields are empty, I use a setFormNotification to let the user know it's not possible to save. 如果这些字段中的任何一个为空,我都会使用setFormNotification来告知用户无法保存。

My problem arises when I uses the same code for Lead Quick Create Form and the setFormNotification do not shown. 当我对Lead快速创建表单使用相同的代码并且未显示setFormNotification时,会出现我的问题。 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. 当我运行调试时,setFormNotification的值显示为false,但是我似乎在SDK中找不到任何说明setFormNotification不适用于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. 另一个奇怪的事情是,如果未填写任何必需的文件,则快速创建表单会显示表单通知,因此它显示可以显示表单通知,但就我而言:不是从我的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. 根据此博客setFormNotification似乎不适用于快速创建表单。 I still have to validate this with CRM 2015 Forms. 我仍然必须使用CRM 2015表单对此进行验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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