Dynamically creating HTML part of Widget

saaquib
Kilo Contributor

On a Catalog Item Form, i have Application (Reference)Field. Based on Application selected i want to display Widget(Macro Type field) which will show below type of Details in HTML Tag.

For Ex:

<b>Instruction for Application selected </b>

<h1>Application XYZ  Details</h1>.

 

I want the HTML part of the widget to be dynamic..Please suggest how to achieve this.

 

 

 

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can use ngBindHtml in your widget to grab html from the server or client script sections of your widget and display it dynamically in the HTML portion. If you need more specific help with this please give a few more details on exactly what you're looking to do and what you've tried so far.

hammad ul aziz2
Mega Guru

you can also use 

Embed a widget in an HTML template

and you can also pass data to that widget as described in the above link.

 

thanks

Hammad