Open and Manage Forms Using Plugins

You can open Oracle Fusion Field Service forms directly from custom plugins by using the Plugin API close method. Plugins can target activity, inventory, or resource forms; prefill form fields; restore drafts; and open submitted forms. This reduces custom UI work and speeds up changes to mobile worker workflows.

To open a form, set backScreen to "open_form" and pass the context that the form needs. If the form opens but the form content does not appear, include the resource ID along with the activity ID when the form requires resource context.

You can use the following parameters with the Plugin API close method::

Parameters Description Notes
backScreen Page to return to Must always be "open_form".
backFormLabel Label of the form to open Required when targeting a specific form.
backActivityID Activity ID if opening the form for a specific activity Use when context is an activity.
backInventoryID Inventory ID if opening the form for a specific inventory Use when context is an inventory.
backResourceID Resource ID if opening the form for a specific resource Use when context is a resource.
backFormParams Key-value pairs to pre-fill form fields Used to pre-populate form inputs.

For example, when opening an activity form that also requires resource context, include both the activity ID and the resource ID:

({
            "apiVersion": 1,
            "method": "close",
            "backScreen": "open_form",
            "backFormLabel": formLabel,
            "backActivityID": "XXXXX1",
            "backResourceID": "YYYYY8"
            });

For more information, see Mobile Plugin Framework guide.