locked
Disable Duration field in service activity RRS feed

  • Question

  • Hi All,

    I would like to disable the duration field of service activity form. I tried to directly remove the field from Mail application form but since Scheduling section is a mandatory field, i am not able to remove it.

    I used the below code to accomplish it but i am not able to see the changes getting reflected.

    crmForm.all.actualdurationminutes.disabled = 'true';

    Please let me know

    Regards,

    VP

    Wednesday, December 8, 2010 8:18 PM

Answers

  • Hey,

    you are not using correct field name duration field in service activity is "scheduleddurationminutes"

    please try this, it's working fine for me

    crmForm.all.scheduleddurationminutes.Disabled = true;


    Mahain : My Dynamics CRM Blog
    Wednesday, December 8, 2010 9:42 PM
    Moderator

All replies

  • do it like

    crmForm.all.actualdurationminutes.disabled = true;


    Mahain : My Dynamics CRM Blog
    Wednesday, December 8, 2010 8:21 PM
    Moderator
  • Hi Mahender,

    Thanks for the mail. I tried that also but i am getting the below error

    crmForm.all.actualdurationminutes is null or not an object

    Regards,

    VP

    Wednesday, December 8, 2010 9:15 PM
  • Hey,

    you are not using correct field name duration field in service activity is "scheduleddurationminutes"

    please try this, it's working fine for me

    crmForm.all.scheduleddurationminutes.Disabled = true;


    Mahain : My Dynamics CRM Blog
    Wednesday, December 8, 2010 9:42 PM
    Moderator
  • Great!, thanks alot Mahender. Thanks again for the prompt response. it worked perfectly

    Cheers

    VP

    Wednesday, December 8, 2010 10:56 PM