Authoring
Widget templates & scaffolding
Create a new widget from a polished starter — or save any instance widget as a reusable template your team can share.
Create New Widget (from template) is a wizard: choose a starting template, then enter name, id and application scope. It creates the sp_widget on the instance, pulls it locally and opens it.
Built-in templates
All come with a clean, modern default style:
| Template | What you get |
|---|---|
| Blank | The default empty scaffolding |
| List + Detail | Master list with a detail panel, wired to a GlideRecord query |
| Form | Input form that creates a record on submit |
| Dashboard | Stat cards with counts grouped by state (GlideAggregate) |
| Card with image | Options-driven card (image, title, text, link) |
demo_datais generated automatically from the chosen template'soption_schema, so the options preview is consistent out of the box.- Import Widget as Template (
SN Widget: Import Widget as Template) saves any instance widget as a reusable template under.sn-widget-kit-templates/<key>.json. It then appears in the wizard.
Standardize across the team
Commit the
.sn-widget-kit-templates/ folder to Git so everyone scaffolds from the same shared starters.