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.

Event handler changes not saving in Ui builder

KedarB
Tera Contributor

KedarB_0-1713420861133.png

Hi guys,

I'm working on Ui builder and when I am adding a link to destination event handler to the page that I built, it doesn't save it and when I refresh it, its disappears. 

Could anyone help me resolve this?

Any help from anyone on this would be much appreciated!

9 REPLIES 9

JasonE
Tera Contributor

I am having the same problem. I create an event handler and click add. As soon as I click anywhere, including the save button, it disappears.

MichaelZischeck
Kilo Sage

same here. I had this problem in the past and solved it, but I can't remember anymore how....

MichaelZischeck
Kilo Sage

Not sure if I found the solution. As the event handler is the same as on another component, this is what I did:

 

I changed something on the landing page.

Went looking here what record was last changed: now/nav/ui/classic/params/target/sys_metadata_list.do

Turns out it's a now/nav/ui/classic/params/target/sys_ux_macroponent.do

Opened the record, copied the "composition" field into an JSON Editor (Visual code)

Searched for the component not working and the component working (in a separate window)

Figured the part "Event mapping" was just an empty array:

                    "eventMappings": [
                       
                    ],
So I copied the event mapping from the other (working) component, pasted it into the empty array, tried, worked
 
 

 

Christopher Dal
Tera Contributor

Same thing happening for me. Looks like a bug.