Thursday, September 10, 2009

crmForm, Field properties

Some words regarding field ( javascript side in crm)

to get field from crm page can by via two options:

1.
var firstName = crmForm.all.firstname;
2.
var firstName= document.getElementById('firstname'); //faster

properties + events:

1. firstName.SetFocus();
set focus on field.

2. firstName.IsDirty
true/false if field changed.

3. firstName.RequiredLevel
0 == normal
1 == recommended
2 == required

4. firstName.DataValue
set/get value from field.

5. firstName.ForceSubmit
send field value to server on save any way


Enjoy,
Rami Heleg.