runUtilityHook

Allows the onUtilityHook hook to execute. You have the ability to pass any additional parameters.

Key
Type
Description

action

runUtilityHook

options

object

containing options that are also passed into the FMS hook script

options.hookSetName

string

(optional)

If passed, will override the default hookSetName (scoped by the page the hook was called from. This key is handy when you want to have a hook run from Page 1 but run a script in the Page 2 handlers. This is also needed if you have global namedActions that calla onUtilityHook, as they are not associated with a specific form.

Helper File >Ver 0.1.2

// action  object for 'cllipboard'
[
 {
  "action": "runUtilityHook",
  "options": {
    "type": "save",
    "someKey": "some passed info"
  }
}
]

In the above example type is an arbitrary key used to parse multiple hook methods from the same page.

You can access the entire action object under the hookPackage key.

Last updated