sndev.io / docs

UI Script

Client-side JavaScript loaded globally or per UI page.

The ui-script skill creates UI scripts (sys_ui_script) — client-side JavaScript that loads globally or on specific pages. Scripts can be linked to Service Portal themes as JS includes or grouped into dependencies.
OperationDescription
createCreate a UI script
create_dependencyCreate a script dependency
link_js_to_dependencyAttach a JS include to a dependency
link_to_portalLink a UI script to a portal theme
Run sn ops ui-script to see the full input schema for each operation.
You

Create a global UI script that adds a keyboard shortcut (Ctrl+Shift+S) to save and stay on the form.