Widget interactions

Open item create form

It is used to open the global item create form.

Snippet

sdk.dispatch("zs-triggerEvent", {type,projectId,module,options:{name}});
  • projectId: You want to create an item in which project, provide that project Id. It is mandatory.
  • module: Currently supported only in the Item module. So put "item".
  • type: "form"
  • name: Can provide the item name. the name automatically populated in the form.

Location redirection

It is used to redirect the URL in new window.

Snippet

sdk.dispatch("zs-redirect-url",{url,openInNewTab});
  • url: Redirection Url.
  • openInNewTab: Need to open in new tab or not. Provide true or false.