Hi experts,
I've created a button on ribbon workbench and I have a single line of text field on my case form called new_timer.
I have added a javascript action on my button to check if the field is empty and also set the value of the field to "Inactive" onclick.
Im using the following code but it doesn't seem to be working:
function CheckValue() { var phoneNo = Xrm.Page.getAttribute('new_timer').getValue(); if (phoneNo != null) return true; else return false; setValue(); } function setValue() { Xrm.Page.getAttribute("phoneNo").setValue(Inactive); }
*This post is locked for comments