Wednesday 6 February 2013

CRM 2011 SetSubmitMode (Force Submit in CRM 4.0)


Whenever CRM field is disabled or "Read-only" in Field settings or in script page, then the values entered in the field will not be saved in database.

To overcome this problem we use to do ForceSubmit in CRM 4.0. But in CRM 2011, it has been changed as SetSubmitMode.

syntax : Xrm.Page.getAttribute("urfieldname").setSubmitMode("always");

For Eg :If your field name is "country", then

             Xrm.Page.getAttribute("country").setValue("India");
             Xrm.Page.getAttribute("country").setSubmitMode("always");





Happy Tracing !!!

 

No comments:

Post a Comment