Hi,
I have created a custom button on a sub-grid to change a boolean value for work-order incident records selected in the grid. The button works fine in the Field Service Mobile web client, but does not appear in the phone app. I have tried to include an enable rule in Ribbon Workbench, but has not solved the problem. Script as below.
Any suggestions on how to fix this issue?
function showTheButton(){
var showOrHideFlag;
if (Xrm.Page.context.client.getClient() == "Mobile" && (Xrm.Page.context.client.getFormFactor() == 2 || Xrm.Page.context.client.getFormFactor() == 3)) {
showOrHideFlag = true;
}
return showOrHideFlag;
}