Hello
I want to change the color for text in footer section(On Hand, Available, Available for shipping) in sales order screen.

Can you please suggest anyone?
Thanks,
Hello
I want to change the color for text in footer section(On Hand, Available, Available for shipping) in sales order screen.
Can you please suggest anyone?
Thanks,
Best answer by Saikrishna V
I was able to display color in the footer section of the Sales Order screen (SO301000) by adding JavaScript to so301000.aspx, and it is working as expected.
However, when I try to integrate the same JavaScript into the Edit ASPX file within a customization package, the script gets removed when I click Generate Customization Script. I also attempted to use the JavaScript control to add the script, but it did not work.
<script type="text/javascript">
function highlightAvailableForShipping() {
let elements = document.querySelectorAll(".toolLabel nobr");
elements.forEach((element) => {
let text = element.innerHTML;
let updatedText = text.replace(
/\b(Unavailable)\b/g,
'<span style="color: red; font-weight: bold;">$1</span>'
);
element.innerHTML = updatedText;
});
}
setTimeout(highlightAvailableForShipping, 2000);
</script>
Could you suggest a way to include JavaScript in the package?
Thankyou Sai,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.