How do you access "widgetInput" or "shared" from inside the modal?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 06:28 AM
How do you access "widgetInput" or "shared" from inside the modal?
https://developer.servicenow.com/app.do#!/api_doc?v=london&id=SPM-open_O
- widgetInput - an object to send the embedded widget as input. The default is null.
- shared - a client-side object to share data with the embedded widget client script.
spModal.open({
title: 'SUMMARY',
widget: 'widget_summary',
widgetInput: {
test: 'test'
}
}).then(function(e) {
// do something
});
In widget_summary's HTML template how would "widgetInput" or "shared" be accessed and used?
Labels:
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2019 05:27 AM
I was also wondering the same thing, but then I found the below link which has a good example of how to use it:
https://github.com/service-portal/x-archive/blob/master/documentation/spModal.md