Monday, 1 September 2014

getting the related view values from the lookup field

 
 
 

returns the  schema name of the field1
Xrm.Page.getAttribute("new_customAttribute").getValue[0].values[0].name

returns the  value of the field1
Xrm.Page.getAttribute("new_customAttribute").getValue[0].values[0].value


 returns the schema name of field2
Xrm.Page.getAttribute("new_customAttribute").getValue[0].values[1].name

returns the value of the field2
Xrm.Page.getAttribute("new_customAttribute").getValue[0].values[1].value

No comments:

Post a Comment