Hi Ritu,
I assume you already have the fields in Maximo to create the questionnaire in Maximo Mobile. If not, would you consider using Inspection Forms? You can also have tasks with the Inspection form if you have already used it in your WO.
If your questionnaire is mandatory, you can add a validation to check whether the form was completed before changing the WO status. You can find an example of how to do it here. https://github.com/ibm-maximo-mobile-dev/mobile-scripting/tree/main/samples/inspections
Otherwise, you'll need to create a page component and add a navigator-tile, for example, to open and navigate to your new page. Another way to do it is to create a button, and the click event will open the page. You can check for the WO edit page searching for the id a7d9q in the app.xml and create a JavaScript function in your AppCustomization.js.
Here is the OOTB code for the edit page.
workOrderEdit(event) {
let workorder = event.item;
let woSchema = this.app.findDatasource(event.datasource).getSchema();
// istanbul ignore next
if (workorder && (workorder.wonum || workorder.href)) {
[...]
this.app.setCurrentPage({
name: 'woedit',
resetScroll: true,
params: {
workorder, woSchema ,
wonum: workorder.wonum,
istask: workorder.istask,
wogroup: workorder.wogroup,
taskid: workorder.taskid,
wo:event.item
},
});
}
}
------------------------------
If this post helps, please consider accepting it as a solution to help other members find it more quickly.
Maycon Belfort
Consultant
BPD Zenith
Melbourne
------------------------------