Embedded widgets are not functioning as expected when using different embedding methods.

147mahesh25
Tera Contributor

I am learning about embedding widgets in ServiceNow, but I encountered an issue while using different embedding methods available in ServiceNow.

Here’s what I did:

1. created a widget to embed it into another.

Screenshot 2025-01-13 203703.png

option schema : 

  

Screenshot 2025-01-13 205732.png

2. I created a main widget in which I embedded another one.

Screenshot 2025-01-13 203728.png

 

I encountered the following issues:

   1. While embedding using widget directive, the options passed from the first directive are being overridden, and the options from the second directive are rendered instead. As shown in the preview, the color appears as "directive2" in both widgets, which is unexpected.

  2. When using the spUtil.get() method, the widget is returned, but the options are not passed, and the default options take precedence. I don't know why this is happening.

 

If anyone has insights or suggestions regarding this issue, please feel free to share. Your input would be greatly appreciated!

 

0 REPLIES 0