locked
CRM 4 Mandatory Field Control When Deactive Record RRS feed

  • Question

  • Hi

    My problem is when I try to deactive a record my mandatory fields are required.It makes trouble when I open my old records

    If I do not choose values to this fields ,ı cannot deactive record.

    My Question is when I click the deactive record,I want that program do not want this mandatory fields to me.Is it possible with some javascript code or how can I do that.When click the deactive button not to force me enter mandatory fields

    On save event I also try this code but it is still want mandatory fields,after fill mandatory fields this code works

    if(event.Mode==5)

    SEtREqFieldLevel("fieldname",0)

    Thanks

    Friday, May 13, 2011 5:14 AM

Answers

  • A workaround is to define an on-demand workflow with a step that deactivates the record. Then you can select the records you want to deactivate and execute the workflow on those records.
    Friday, May 13, 2011 11:43 AM
    Moderator

All replies

  • A workaround is to define an on-demand workflow with a step that deactivates the record. Then you can select the records you want to deactivate and execute the workflow on those records.
    Friday, May 13, 2011 11:43 AM
    Moderator
  • Thank for your help Ruiz,

    perfect idea.I made it and it is working 

    Saturday, May 14, 2011 7:48 AM