Client script to add Alert() message to HRSD document task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2024 03:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 04:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 10:13 AM
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.