Force Submit in MS CRM 2011

Sometimes is a great way use read-only to to restrict change or to make sure input is valid. However, all read-only fields are not submitted by default onSave event.
This is not desirable if you are automatically populating fields from user input on another field(s) and those fields cannot be changed by user. Those auto-populated fields will never be saved.

To make sure the fields are saved, we can call javascript function setSubmitMode.

Xrm.Page.getAttribute("Attributename").setSubmitMode("Value");

Submit values available are:

  • alwaysit will submit only if the value of the attribute has changed
  • never
  • dirtyit will not submit at all

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...