How to set a clone widget to existing widget?

manmathpanda
Giga Guru

Hi Developers,

As i am new in service portal , i want to know how to set a cloned widget with an existing one.

While practicing Service portal,

I saw that in incident page end user view, it is showing assgned to and assigned group but in service request it is not showing. 

For this i cloned the request filelds widget and gave name as copy request field.

Now i am getting doubt how to fix it in the existing one?

 

Any help will be appreciated.

 

Regards,

Manmath

4 REPLIES 4

Priti Golam1
Tera Expert

Hello,

 you can directly do this to embed the widget

<div>
    <widget id="widget-cool-clock"></widget>
</div>
For more details refer the below link
https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/build/service-portal/concept/c_Ne...

mark correct if my answer solves your problem or mark helpful if it helps you any way

Thanks,
Priti

Hi Priti,

I am able to clone the widget and after cloning if i will write assigned_to , assignment_group, then it is showing as compilation error and not saving it.

Sharing screenshot as below

find_real_file.png

 

Please suggest what to do here?

 

Regards,

Manmath

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

You mean that you have cloned a widget and instead of OOB widget now you want to use cloned widget on that page right.

 

Go to Page designer and on that portal and replace existing widget with Cloned one. If its in code then use priti's process.


Thanks,
Ashutosh

SatheeshKumar
Kilo Sage

Once you have cloned widget you need to replace the widget with the original one in the page.

 

 

 

Look for Service Portal >> Pages & then check for necessary page. Open the page & then look for Open in Designer related link. Open it in designer view, remove the existing widget & replace it with the cloned one.

 

-satheesh