UI Action

Mahesh
Tera Contributor

I created a UI action on Case table.with below details.

name: my UI action

action: takeAction

Form button: checked 

Client : checked

onClick : onClick()

Script : 

 function onClick(){

alert('hi');

}

 

But, When I click on the form button alert message is not populating.

I created same UI action in different PDI, with same details its working fine.

Now what might be the issue with my first instance UI action?

1 REPLY 1

Martin Friedel
Mega Sage

Hello,
I am not sure about a root cause, but can you try to pick more specific name of the function? Maybe there is some collision with a function from another UI Action.

For example:
onClick : displayAlertMsg()
Script:

function displayAlertMsg() {
    alert('hi');
}


If my answer helped you, please mark it as correct and helpful, thank you 👍
Martin