
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;
}
It works for me now.
For anyone else wondering what to do in this case, an enable rule like the one
below is added to the Ribbon Workbench command.
Thanks to Sam: community.dynamics.com/.../how-to-show-custom-ribbon-button-while-working-offline-on-mobile-device