I am using this code:
status = Xrm.Page.data.entity.attributes.get('fieldname').getValue();
alert(status);
alert("end");
And that is triggered by custom button which is working.
The alert(status) window pops up, but it is just empty. The final alert("end") window pops up correctly with text end. The fieldname field is a two option field.
*This post is locked for comments