Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Can't read last set field value when executing ribbon button

$
0
0

I have this Problem: When i fill the "name" attribute af an account and click directly on a custom button in the Toolbar without clicking elsewhere before, then I'm unable to get the value of the "name" attribute. It just gives me "null".

alert(Xrm.Page.getAttribute('name').getValue());

But if I first leave the filed an click somewhere else and afterwards my custom button, then the script above shows me the correct value that I just entered into the "name" attribute.

It seams that CRM 2013 does not correctly remove the focus from the field when clicking directly on a button.

Can anyone help me?


Thomas Flückiger Flückiger Informatik http://www.f-in.ch


Viewing all articles
Browse latest Browse all 8223

Trending Articles