How to use variable item Custom

yana7
Tera Contributor

I have created a Custom Variable but the value is not saved. Has anyone ever used custom variables? can you give me an example
I have added the Widget that I made

thanks

yana7_0-1749845694254.png

 

1 REPLY 1

Chaitanya ILCR
Kilo Patron

Hi,

with custom variables you add widgets and macros to the variables and those will be displayed in forms

macro is for native ui

widget is for service portal

create a Macro and add the macro in the macro field (if you just populate this, it only works in native ui not in service portal)

 

create a widget and add the widget in the widget field (if you just populate this, it only works in portal not in Native UI)

 

ChaitanyaILCR_0-1749863443267.png

 

Custom

This variable inserts a UI macro into the catalog item.

UI macros in the service catalog do not support the following glide_list functions: clickthrough, slushbucket editing, and email field.

  • Use phase one Jelly only for any UI macros added as variables. Phase two Jelly within the macro is not processed and appears on the page as standard content.
  • This variable is not yet supported on Classic Mobile devices.
  • This variable is supported in Service Portal through widgets. Create a widget with the same functionality as that of a macro and link the widget with the variable.

https://www.servicenow.com/docs/bundle/washingtondc-servicenow-platform/page/product/service-catalog...

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya