CRM 2011 Script om veld te disabelen

Onderstaand script kun je gebruiken in CRM 2011 om een veld te disabelen (of om het readonly te maken). Het veld wordt dan grijs en kan niet meer gewijzigd worden.

1
2
3
4
5
6
//function to disable field on a form
function DisableField(fieldname) {
    if (fieldname != null) {
        Xrm.Page.ui.controls.get(fieldname).setDisabled(true);
    }
}
This entry was posted in crm and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>