Set UI builder catalog item component variables dynamically

syedahmed
Tera Contributor

I am using a catalog item component in UI builder and I want to set the variables dynamically based on the input selected by user on another page.

 

So the question is how can I set one of the variable on the catalog item component dynamically or via script?

 

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The catalog item component does not support that functionality. Your options would be:

  • Open a service portal page in a new tab and pass the values through the url
  • Open a service portal page in an iframe in the workspace and pass the values to the iframe. The iframe component is also limited in that outside of passing the url you can't bubble anything back up to the parent from inside the iframe.
  • Build your own custom catalog item component.