Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to have onclick container in ui builder

Hasan6
ServiceNow Employee
ServiceNow Employee

Hi Community,

In ui builder, I want to run an 'onclick' script when any content in a container is clicked.

The container component does not have an event tagged to it.

How can I achieve this.

I duplicated the 'Container' UX Macroponent Definition of container and its corresponding builder component, and added a dispatched event as 'Card clicked', 'Button bare clicked' and 'Process card clicked' but the events that do show up in the container are not triggered when I click the content of the container.

 

thanks in advance

2 REPLIES 2

Aviram
Tera Contributor

Hi,

Did you manage to find a solution?

anny
Tera Contributor

You can use Card Base Container