Making a field unavailable to a user with javascript in MS CRM 4
Posted
by mwright
on Stack Overflow
See other posts from Stack Overflow
or by mwright
Published on 2010-04-15T16:23:26Z
Indexed on
2010/04/15
18:23 UTC
Read the original article
Hit count: 270
ms-crm-4
I am trying to disable a field, i.e. grey it out and not allow the user to select it. To achieve this effect I am currently calling
crmForm.all.new_attribute1.disabled = true;
crmForm.all.new_attribute2.Disabled = true;
The Disable, with a capital D, makes the field grayed out but the user can still put the cursor in that field or tab to it.
The disable, with a little d, makes the field unavailable to the cursor and via tab, but gives no visual indication that it can't be interacted with.
Is there a better way to do this, one call that will achieve similar results or am I stuck having both there?
© Stack Overflow or respective owner