Skip to main content
Solved

Modern UI Customization Issue

  • February 18, 2026
  • 2 replies
  • 36 views

bigred1022
Jr Varsity II
Forum|alt.badge.img

Hello,

 

We are moving to 25R2 soon and in our sandbox testing, we have a single Javascript customization to simply change the label of “Note” to “Warehouse Notes”.  We get no errors when publishing but the change isn’t happening.  We assume it’s due to the Modern UI.  Can anyone point me in the right direction of what I need to change in order for it to work?

 

 

 

Here is the Script:

document.addEventListener('DOMContentLoaded', function() {        const notesElement = document.querySelector('#ctl00_usrCaption_tlbDataView_ul .toolsBtn[data-cmd="NoteShow"] .toolBtnNormal');     if (notesElement) {         notesElement.lastChild.textContent = 'Warehouse Notes';      } });

Best answer by abhimanyuprajapati52

Hi ​@bigred1022,
 

In 25R2 Modern UI, direct DOM manipulation will no longer work because the legacy ASP.NET WebForms toolbar structure is no longer rendered. The control IDs like ctl00_... do not exist in Modern UI.

Instead of using JavaScript, the supported way to change the Notes button label is to override the action caption in a graph extension:

Base.Actions["NoteShow"].SetCaption("Warehouse Notes");

This works in both Classic and Modern UI and is upgrade-safe.

2 replies

abhimanyuprajapati52
Jr Varsity I
Forum|alt.badge.img

Hi ​@bigred1022,
 

In 25R2 Modern UI, direct DOM manipulation will no longer work because the legacy ASP.NET WebForms toolbar structure is no longer rendered. The control IDs like ctl00_... do not exist in Modern UI.

Instead of using JavaScript, the supported way to change the Notes button label is to override the action caption in a graph extension:

Base.Actions["NoteShow"].SetCaption("Warehouse Notes");

This works in both Classic and Modern UI and is upgrade-safe.


bigred1022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • February 18, 2026

Thank you for the clarification! I will pass this onto our vendor.  It’s a little above my current knowledge of where that area is.