Embedding widget in Service Catalog form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 08:34 AM
In Service Catalog you have the ability to embed a widget as a variable in your catalog items or record producers.
"In this example, we will create a loader widget that will only be displayed if the variable choices are empty if the server's response is slow."
- Create a catalog item with variables
- Create widget called add-panel-loader
- In the html template add the following code
<div class="panel-loader" style="text-align: center">
<fa name="spinner" spin="true"></fa>
<p>${Loading data}...</p>
</div>​
- In related lists, add a new variable to the catalog item.
- In the Type field, select Custom.
- In the type specifications, select a widget that performs the desired action (see screenshot)
You can hide/show the widget loader if you want to check the variable choices (or server response) .
Using this method, you can easily display the widget in your catalog items and improve the user experience for your employees.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 02:01 AM
Hi Touria,
Thank you for this useful Tip.
Regards,