message on click of button

message on click of button

Hi,

i added insert task on 'Quick view' below  'Action'  of report just below 'Delete' button,  so i am trying to add a message on click of button that, "This item is now added into Pending Request" like this ....

So, how can i achieve this ; because it is saying alert task can't be applied.

please suggest.