Hi Friends,
In certain cases, you would want to copy the date values from date field to another date field on the same form.
For example, on contracts, if you have a custom date field called Contract Start date field and billing start date. then you can use below code to copy the Contract start date to Billing Start Date field on the onChange event of Contract Start Date.
if (crmForm.all.new_billingstartdate.DataValue==null &&
crmForm.all.new_contractstartdate.DataValue !=null)
{
crmForm.all.new_billingstartdate.DataValue=crmForm.all.new_contractstartdate.DataValue;
}
No comments:
Post a Comment