The CreatorCon Call for Content is officially open! Get started here.

Call a UI Macro via a UI Action

John Warren
Kilo Guru

Hello,

We are running into an issue after upgrading our instance to Fuji. It seems custom attributes on fields are not available until after the record is saved. We had a custom attribute to fire a UI macro setup on our caller field. The macro would assist the tech responding to the call in populating the callers configuration item by displaying only the CI's assigned to the caller.

As a work around I would like to fire the UI macro from a UI action. Has anyone done something like that before?

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

How are you calling the ui macro in your ui action, could you post the code? If it's by using DOM manipulation you may have to redo it as all the forms have been rewritten in Fuji.


John Warren
Kilo Guru

Right now we have the UI macro setup as an attribute on the caller field. That stopped working after the Fuji upgrade however until the record is saved.


John Warren
Kilo Guru

We just pulled the function out of the UI macro and ran that directly on the UI action and it seems to be working.