UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 10:34 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 01:55 PM
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