locked
How to prevent user from changing required items to not required ? RRS feed

  • Question

  • Hi All,

    I have a requirement like to prevent the user form changing the any required items to not required.

    Please help me

    Thanks in advance

    Thursday, June 12, 2014 9:08 AM

Answers

  • Hi,

    Use the following code to change your field's required level:

    Xrm.Page.getAttribute("field_name").setRequiredLevel("none");
    

    To change it back to required, use the code:

    Xrm.Page.getAttribute("field_name").setRequiredLevel("required");
    


    Admin QuikView Solution for CRM 2013

    Thursday, June 12, 2014 9:16 AM