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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156