# Feedback on Overriding JS in Liferay 7.4 Workflow Task Portlet

**URL:** <https://discuss.liferay.com/t/feedback-on-overriding-js-in-liferay-7-4-workflow-task-portlet/335>\
**Category:** Feedback\
**Created:** [February 9, 2026, 3:38am UTC](https://discuss.liferay.com/t/feedback-on-overriding-js-in-liferay-7-4-workflow-task-portlet/335 "2026-02-09T03:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandro.barboni](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@alessandro.barboni](https://discuss.liferay.com/u/alessandro.barboni)\
**Post date:** [February 9, 2026, 3:38am UTC](https://discuss.liferay.com/t/feedback-on-overriding-js-in-liferay-7-4-workflow-task-portlet/335/1 "2026-02-09T03:38:09Z")

</div>

Hi,

I’m looking for some feedback on the best approach to override the core JavaScript in Liferay 7.4, specifically the script in the Workflow Task portlet that handles redirects when approving or rejecting tasks.

The JavaScript is part of the `workflow-task-web` module, in particular workflow\_task\_action.jsp , specifically the function used as a `propTransformer` in the Clay Dropdown component. This function currently handles redirects when approving or rejecting tasks.  
Any guidance, examples, or best practices would be greatly appreciated.

Thank you,  
A.

---

<div class="post-metadata">

**Author:** ![Pooja\_Bhambani](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/pooja_bhambani/32/379_2.png) [@Pooja\_Bhambani](https://discuss.liferay.com/u/Pooja_Bhambani)\
**Post date:** [February 9, 2026, 7:34am UTC](https://discuss.liferay.com/t/feedback-on-overriding-js-in-liferay-7-4-workflow-task-portlet/335/2 "2026-02-09T07:34:30Z")

</div>

Hello @alessandro.barboni,

It is not recommended to override core Liferay JS files through custom modules or via fragments, as it can lead to unknown and unexpected consequences at runtime. However, you can override this using Liferay’s default AUI and YUI modules.

Liferay DXP contains several default YUI/AUI modules. You may need to override functionality provided by these module’s scripts. To do this, you must create a custom AUI module containing three things:

• A copy of the original module’s JavaScript file containing your modifications

• A config.js file that specifies the modified JavaScript file’s path and the module it overrides

• A bnd.bnd file that tells the OSGi container to override the original

For more information on this, please refer to our legacy documentation: [Legacy Documentation - Liferay Official Documentation - Liferay Learn](https://learn.liferay.com/w/reference/legacy-documentation) → Developing Liferay DXP 7.1 → Chapter 56 (56.5)

---

<div class="post-metadata">

**Author:** ![alessandro.barboni](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@alessandro.barboni](https://discuss.liferay.com/u/alessandro.barboni)\
**Post date:** [February 11, 2026, 2:17am UTC](https://discuss.liferay.com/t/feedback-on-overriding-js-in-liferay-7-4-workflow-task-portlet/335/3 "2026-02-11T02:17:26Z")

</div>

I have used this approach before with Liferay 7.1.  
Is it possible to apply the same approach in Liferay 7.4 when dealing with a JavaScript file that does not rely on AUI, but uses plain JavaScript and references Liferay’s native JS package (frontend-js-web)?

Thank you
