- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2018 08:17 AM
Hi Everyone,
I've read through several community postings about this, but couldn't find a concrete answer. Is it possible to call a script includes from a Service Portal widget? Our team has a server call that we would like to reuse in multiple widgets, so thought we would leverage a Script Includes and just call upon that script in all of the widgets that would need it. What is the correct syntax for achieving this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2018 09:34 AM
Yes, you could call a script include in the widget.
You need to include your code in the server part of the widget.
the syntax could be like this
var a=new include_name().include_function(<parameters if you want to pass>);
now you could use the value of the variable and populate the data object and use it in the html code .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2018 09:34 AM
Yes, you could call a script include in the widget.
You need to include your code in the server part of the widget.
the syntax could be like this
var a=new include_name().include_function(<parameters if you want to pass>);
now you could use the value of the variable and populate the data object and use it in the html code .