Posts

Showing posts from 2009

MS CRM 4.0 Jscript Field Types

To access the properties and methods of the field objects within the crmForm , use the schema name of the entity attribute. For example, to access the Topic field in a Lead form, use the syntax crmForm.all .subject. The following table shows the Properties that are available for all fields: General Field Properties Type Values {field}.DataValue Varies for each field type Get/Set Property   Valid for all field types. Note that setting value in a script does not raise the OnChange event. You can use the FireOnChange field method to perform this function. {Field}.Disabled Boolean Get/Set Property   The field is displayed as read-only to the user. However it can be updated by a script. This field is submitted to the server when it is modified. Example var oField = crmForm.all.SOME_FIELD_ID; // Toggle the disbled state of the field oField.Disabled = !oField.Disabled; {Field} .RequiredLevel   Get property. Determines the level of requirement for the field. Valid values are as follow