在CRM中处理JS的警报消息 [英] Handling alert messages of JS in CRM

查看:90
本文介绍了在CRM中处理JS的警报消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I've written a funtion to enable or disable the datetime field depending on the two option value. If the value selected is yes, then the date time field is enabled or else it's disabled. If it's enabled then it becomes a mandatory field. There some validation conditions for the datetime field. If the conditions are not satisfied, then it pop's up a message and clears the datetime field. If the user selects a value using the calendar, then there is no issue. If the user enters the value which doesn't satisfy the condition and clicks on save button then it is showing two messages one which doesn't satisfy the validation and the other to enter the value as it is mandatory field. How to show only one message instead of two. The mandatory message is being showed by CRM.

推荐答案

首先检查是否输入了值,如果未输入则给出消息,请输入一个值.
之后,如果输入了值,则检查它是否有效,然后给出消息.

因此使用它,它会一一提示.如果您有任何问题,请详细告诉我.给我穿上你的功能代码,我会检查一下.
first check the value is entered or not, if not entered then give message, please enter a value.
After that if has entered value then check it is valid or not then give message.

so using this, it will give one by one message. if you have any problem then tell me in detail. shoe me your function code, i will check it.


这篇关于在CRM中处理JS的警报消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆