locked
setting up look field to null or empty in mscrm 2013 RRS feed

  • General discussion

  • Dear all;

    i am tring to set up the look up field as null in mscrm 2013 but the code is not working for some reason 

    Xrm.Page.getAttribute("field").setValue(null);
    Xrm.Page.getAttribute("field").setSubmitMode("always");

    Thursday, August 21, 2014 3:00 PM

All replies

  • the code is correct

    the first line make empty the lookup, the second one make crm save the value also if the lookup is read only.

    make sure the field name is correct, try to debug your script, probably the error is in another part of your code.


    My blog: www.crmanswers.net - Rockstar 365 Profile

    Thursday, August 21, 2014 3:08 PM