Your listener id (must be unique)
Your listener function
// log a message in the console once a query form has been fetched from server.
JMap.Event.Query.on.queryFormLoad(
"custom-query-form-load",
params => console.log("A query form has been loaded from server", params.query)
)
JMap.Event.Query.on.queryFormLoad
This event is triggered when a query form has been loaded.