UI Builder - give Custom List action an event in a list

Jonas VK
Tera Guru

Hi all, I need some help with custom list actions, i added 2 new buttons in my list action, accept and reject(see image).
find_real_file.png

these buttons should work when items in the list are selected and the state will then be updated depending what button has been pressed. 

my question now is, can I make these list actions show up in the events tab as for example "Accept has been clicked"?
(see image) This way i can bind a Page script to the buttons to add the functionality to update the state.
find_real_file.png


 

Thanks in advance,

Jonas

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Jonas,

I'm not sure how you've created your buttons but if you want to add a list action that can fire a UIB event you'll need to use a declarative action. Then you can connect your action to a handled event (it won't show up on the list events tab, but the events tab for the body component on your UIB page). 

I've got an article and video walking through the steps here: Next Experience COE Article: Introduction to the Next Experience UI

View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Jonas,

I'm not sure how you've created your buttons but if you want to add a list action that can fire a UIB event you'll need to use a declarative action. Then you can connect your action to a handled event (it won't show up on the list events tab, but the events tab for the body component on your UIB page). 

I've got an article and video walking through the steps here: Next Experience COE Article: Introduction to the Next Experience UI

Hi Brad,
thanks for the info, i'll will check out the video


I made the buttons in the List actions table and assigned them to my list with the correct conditions. 

your video worked for me and it's functional, thanks 

Hi Brad,

How are these custom buttons created for use in the workspace?