Thanks Rakesh, but I must be doing something wrong as this is not working.
Main Topics
Browse All TopicsI have a date picker in a custom entity in CRM 4
I want to add a message box to the on change event that displays the message when a date is inserted or changed.
I am new to javascript so please display code in full. I know which bits I will have to change.
Thanks for your help.
Amanda
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It was already checked as there is already javascript against that field. Anyway, it now appears to work! Thanks.
Is there anyway to restrict the actual dates permitted to be entered? I don't want a date range, I actually only want to allow the date to be entered if it is a Monday.
Thanks again for your help.
Amanda
I found solution in this link try it ou
http://www.dynamicsexchang
search for "how can I allow the date to be entered if it is a Monday in crm 4.0"
hope this helps
Rakesh
Thanks Rakesh I found that solution.
However, I am getting the error messgae 'Object Doesn't Support this Action'.
I don't know whether this has anything to do with there already being code in there for something else.
Please see code already there which adds 7 days to new_week1 date and enters it into new_week2 field. This works fine but not when I add:
var dateObj = new crmForm.all.new_week1.Data
if(dateObj.getDay() !=1)
{
alert("Please make sure that this date relates to the FIRST week on provision");
return;
}
Please advise of any changes I should make to the code.
Thanks again for you help it is very much appreciated.
Amanda
Business Accounts
Answer for Membership
by: rakeshAgarwalPosted on 2009-09-16 at 03:05:48ID: 25343717
Go to settings ---> customization --> customize entity ---> <<entity>> --> forms and views --> Double click of the field
alert("You have changed the date")
regards
Rakesh