Click here to Skip to main content
15,665,229 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

1 solution

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.
Share this answer
sravanirn 26-Dec-11 4:07am    
Out of the two alerts, one is custom alert given by me and other is CRM alert. How can I stop CRM alert.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900