Hi guys,
I want to change the color of the field in the invoice when it has data. for example, it converts to red. what code should I use for it?
Thanks you
Hi guys,
I want to change the color of the field in the invoice when it has data. for example, it converts to red. what code should I use for it?
Thanks you
Hi Amin,
Yes, it can be definitely done as we can see in our earlier comments. But it has a down that is performance. As with a lot of legacies JS commands getting depreciated (Article) I feel it is not right to build our client-side validations using such commands.
Alternatively, I would suggest using the formcontext.ui.setformNotification (article). You can use the info in which you can required text that invoice has amount. The benefit of it is that is supported on the Unified interface (UI) as well.
Thanks,
Mustajab
Hi Amin,
You can do it using unsupported way in JavaScript
Please refer below code for more details:
Hello,
You can refer this,
Or,You can try this code,
window.parent.document.getElementById("field_c").style.backgroundColor = "red";
I hope it helps,
Thanks.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27