Hi everyone,
it seems that the problem still persists.
I want to change the colour of my model driven app text input field. Using JS, it generally seems to be possible.
I achieved the following with a direct console execution of:
document.querySelector("[data-id=cdt_p_familienname] input").style.backgroundColor = "rgb(255,199,206)"

Problem is I usually would implement my <script></script> in the end to be loaded last. Seems not to be possible in MDAs.
I now tried the .OnLoad()-Event of the form itself. Unfortunately it seems that the OnLoad event fires before the DOM is loaded in some way. When outputting the HTML using window.document I just get some scripts.

Even using a setTimeout() does not work as the script seems to only get elements which are within or executed before the form OnLoad().
Anyone knows why it behaves like that?