Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Custom widget variable

Merza Lyn
Giga Guru

We have a catalog item that used a variable custom widget.

MerzaLyn_0-1786523151200.png
variable name
MerzaLyn_1-1786523176542.png

The other one is when select New Automation, that's when it will appear.

MerzaLyn_2-1786523356294.png

variable name
MerzaLyn_3-1786523373026.png



This is the widget HTML and controller for the automation type

MerzaLyn_4-1786523470259.png

MerzaLyn_5-1786523490032.png

 

There is the variable 'automation' in the controller.

MerzaLyn_6-1786525044342.png

MerzaLyn_7-1786525091957.png

 

When select New automation then click 'An existing manual process', the widget is still there and the fields for that selection.

MerzaLyn_9-1786525506979.png

 

But then when select New automation then click 'A new automation idea', the widget is gone.

MerzaLyn_10-1786525621448.png

 



 

 

1 ACCEPTED SOLUTION

Merza Lyn
Giga Guru

I already figured this out. It's the UI Policy I created. I fixed the UI policy.

View solution in original post

8 REPLIES 8

@Merza Lyn 

then how is the show/hide logic working.

we don't know how that's being handled

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

I also created a variable that has the same value to the widget.

MerzaLyn_0-1786684419248.png


MerzaLyn_1-1786684482463.pngMerzaLyn_2-1786684502711.png

 

This variable is hidden in catalog item view.

@Merza Lyn 

very difficult to debug and solve this without actual instance access and details

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Merza Lyn
Giga Guru

I already figured this out. It's the UI Policy I created. I fixed the UI policy.