locked
crm 2011 plugins - I update a field per javascript and in the update plugin this field is not visible RRS feed

  • Question

  • Hi,

    i update one field in a form per javascript and some others i change manually.  During the saving (update) i look in the attributes of the Target entity and i can not find this field which got updated per javascript. Per script i set the field to NULL and disable it. After the update i reload the form and the ALL updates are saved.

    Can someone explain me this strange behaviour ?

    Kind Regards

    Markus

    Tuesday, August 12, 2014 12:41 PM

All replies

  • I removed now the javascript crm api call setDisable(true) and the plugin sees the changes to field.

    I really don't understand why crm is doing this.

    Any ideas ?

    Tuesday, August 12, 2014 1:25 PM
  • The function is field.setDisabled(true); not setDisable(true)

    And if you disable the field and want to see it on the server you also need to 

    field.setSubmitMode("always");

    Cheers


    Dev Blog: Dynamics CRM - Thinking outside the Box

    Tuesday, August 12, 2014 2:50 PM