UI Builder Event Handler Condition - Advanced > "Conditionally"

cagg
Tera Guru

***I also have this in the Next Experience forum with no response so adding it here for more visibility***

 

Does anyone know what the "Event handler condition" should accept as a condition? There is no documentation I can find on this, all of the docs for event handling stop short of explaining this.

 

What I am looking for is something like this

@payload.fieldName == 'myFieldName' - execute the event.
 
cagg_0-1677708592515.png

 

 

Thanks, Jim

8 REPLIES 8

Hi tresener - have a look at this link and let me know if that is what you are looking for: Event Handler Condition - Advanced > "Conditionall... - ServiceNow Community

I believe when I had this issue I posted in 2 forums to try and get an answer. That link has the formula I used.

Jim

Where can I get "YOUR_EVENT_NAME" from? I've tried using the event name from the UX Event record but I can't get it to fire.

Jan Zemcak
Tera Contributor

Do you guys have any Working example for "Event handler condition" on Update client state parameter ?

 

Thanks

Hi Jan, I would think that the Client State Parameter would execute as it normally would by setting a new value but it would only happen if the Advanced Condition was met -

cagg_1-1684427573057.png

 

The below URL is how I found what the Advanced Condition accepted -

https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/ui-builder/task/...

 

Also have a look at this article I posted that is the same subject but a different group, it contains a working condition - Event Handler Condition - Advanced > "Conditionall... - ServiceNow Community

 

Please let me know if I am missing something about your question or if this is what you are looking for.

 

Thanks, Jim