- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 08:03 PM
Hi,
I need help creating a modal in the service portal. I want to launch the create incident record producer (or possibly other catalog items) in a modal window. Is this possible?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 09:55 PM
Yes, it can be done pretty simply. I wrote a blog post a while ago on opening modals in Service Portal: https://serviceportal.io/modal-windows-service-portal/
The only thing different would be embedding the record producer inside the template using the <sp-widget> directive and passing in the right options. For info on embedding widgets, see here: https://serviceportal.io/docs/documentation/widget_embedded.md
Nathan Firth
Founder and ServiceNow Architect
NewRocket, Inc.
nathan.firth@newrocket.com
http://serviceportal.io
http://newrocket.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 08:36 PM
Hi Mike,
You can embed the Record Producer widget inside modal window. Here's someone saying they were successful doing something similar.
Here's the doc's on embedding a widget.. You may new to clone the OOTB widget and make changes.
Finally here's the doc's on Modal.
Hope this helps and let us know of your results.
-Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 09:55 PM
Yes, it can be done pretty simply. I wrote a blog post a while ago on opening modals in Service Portal: https://serviceportal.io/modal-windows-service-portal/
The only thing different would be embedding the record producer inside the template using the <sp-widget> directive and passing in the right options. For info on embedding widgets, see here: https://serviceportal.io/docs/documentation/widget_embedded.md
Nathan Firth
Founder and ServiceNow Architect
NewRocket, Inc.
nathan.firth@newrocket.com
http://serviceportal.io
http://newrocket.com