Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Passing Context to onChange

$
0
0

Hi All,

I am trying add onchange event to many fields dynamically using javascript using a loop. I'm using the same onchange function for all field. But I need to check if the field value is empty or not before I do so. 

Xrm.Page.getControl(attributeName).addOnChange(chainMethod);

function chainMethod()

{

//check the field value is not null

//Then execute the logic

}

I need a way to dynamically pass the attribute name to the onchange function. Does anyone have idea about that?

 -Drew


Viewing all articles
Browse latest Browse all 55831

Trending Articles