02 Feb 2009 @ 10:26 AM 

The default duration and due date are annoying in CRM, Sonoma Partners has provided some basic code to set the default duration to blank and the due to date to the current date and time stamp. This is opposed to the following image where the due date is blank and the duration is 30 minutes.

var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;

switch (crmForm.FormType)
{
case CRM_FORM_TYPE_CREATE:
crmForm.all.actualdurationminutes.DataValue = null;
crmForm.all.scheduledend.DataValue = new Date();
break;

case CRM_FORM_TYPE_UPDATE:
// do nothing
break;
}

Posted By: bradlaw
Last Edit: 25 Jun 2009 @ 03:08 PM

EmailPermalinkComments (0)
Tags
Tags: , ,
Categories: Default Values

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 37
  • Comments » 3
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Clients



    No Child Pages.

Home



    No Child Pages.

Recent Posts



    No Child Pages.

Visitor Locations



    No Child Pages.