Formatting of Disabled Fields

Good Afternoon,

We have a number of forms where depending on the status of an item we disable various fields, generally as an item progresses through a process fields a disabled to lock data down. The issue we have is that there appears to be big difference in the format of display of different types of fields which makes the form look a little messy and unprofessional, the screen shot below shows a typical example where different types of fields are displayed next to each other on an edit form...

I have had to set the CONTROL FontColor to Black as otherwise some of the text is very difficult to read as you can see below...

I know this may seem a fairly minor issue but there really does need to be some form of uniformity here as we are trying to provide the best user experience we can for our internal clients....


Hello @Tony_Duke,

I've forwarded the information to our developer team to investigate the issue.

And for now, you can change the background color of the controls with the following CSS. Please use it in the CSS editor.

.k-widget.form-control {
    background-color: #e9ecef !important;

span.k-widget.k-dropdown.k-header.form-control {
    background-color: #dee2e6 !important;

White or black color font on single fields do not display properly on IPhones. They display properly on my laptop and Android Tablet but on IPhones it displays as greyish. Changing color on CSS does no good.

Hello @avs270,

Could you please share the CSS that you are using to change the font to troubleshoot the issue.

Thank you!


1 Like

Hello @avs270,

Thank you!

This is Safari browser feature. You can use this code to change the color of the font, it also works for desktop browsers.

  $(fd.field('Title').$el).find('input').css('-webkit-text-fill-color', 'white')

That worked! Thank you.

1 Like

How would you change the code below to get it working on a Plain Text control?


try $(fd.control('Title').$el

I tried this and it didn't work.


Any suggestions?

I also tried this, thought it was working but it is not.

Any ideas?


I have not tried to format the text at all, I hide/show it based on a condition, and this is what works for me:


Also, when doing css, on your example try:

$(fd.control('CustomSubmit').$el).css('background-color','red !important')

1 Like

Yes, this works!



How do I modify this, so that the CSS applies to the Cell Properties of the field?

I'm using the code below, but it does not apply to the Cell properties of the field.



Dear @adasilva,
What exactly are you trying to do with CSS? Set input's background color or set cell's background?

In either case, what you have is not CSS, but JavaScript. To modify it to CSS, use:


Hi Nikita,

I need to use JavaScript to set the background color of a Cell for a particular field.


Hello @adasilva,

You need to give a CSS class to the cell, e.g. 'red-cell'
And you can use this code to change its color dynamically:

1 Like

Sorry for asking. I´m trying to change the color of a MultiLinePlainText field.
I tried these one but the first one wont work and the second one looks very ugly :


I also use this one for my normal text fields and this works fine:

Is there any possibility to change the color of my multiline plaintextfields?

Best regards

Hello @Sternchen,

Try out like this:


It worked. Thank you :slight_smile: so simple

1 Like