I want to change the value of a field with javascript on the OnSave Event of a Form in CRM 2011. This should only occur if the entity is created.
This means I check the FormMode for OnCreate and then try to change a field value with:
Xrm.Page.data.entity.attributes.get("field").setValue("asd");
Xrm.Page.data.entity.save();
or
Xrm.Page.getAttribute("field").setValue("asd");
Xrm.Page.data.entity.save();
neither of them is working. How do I save/change the value OnCreate with JavaScript in a CRM 2011 Form?
*This post is locked for comments
I have the same question (0)