Dynamically creating HTML part of Widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 04:47 AM
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.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 06:23 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 07:59 AM
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