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

Client script to add Alert() message to HRSD document task

SonaK
Tera Contributor

OnLoad Client script with just alert("TEST") on HRSD document task is not running when accessed from service portal whereas it works fine when I access the same document task in the desktop. I have defined UI type as "All" and tried turning Isolated scripts on and off as well. Nothing seem to work. Any idea what could be the reason. Please help.

6 REPLIES 6

Thanks for your response! Yeah. To achieve that, I will need to clone the OOB widget and add the alert in the Client script. But I was trying to see if I can avoid the customization.  

SonaK
Tera Contributor

Hi. The task is a document task that is displayed on the employee portal under to-do list which is configured as a widget. Since the is based on sn_hr_doc_task table I was trying to do the client script on this table. It works in the native environment but not when the pdf document task is accessed through the widget. I don't want to clone and change the widget (it appears to be a OOB widget) just to add an alert message. I am trying to see if there is any  option to add the alert on the document task.