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....
Thanks
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!
$(fd.field('anafield').$el).find('input').css('background-color','red');
$(fd.field('anafield').$el).find('input').css('color','white');
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('background-color','red');
$(fd.field('Title').$el).find('input').css('-webkit-text-fill-color', 'white')
How would you change the code below to get it working on a Plain Text control?
$(fd.field('Title').$el).find('input').css('background-color','red');
try $(fd.control('Title').$el
I tried this and it didn't work.
$(fd.control('NetworkSpecs').$el).find('input').css('background-color','red');
Any suggestions?
I also tried this, thought it was working but it is not.
Any ideas?
$(fd.control('CustomSubmit').$el).css('background-color','red')
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:
$(fd.control('NetworkSpecs').$el).hide();
Also, when doing css, on your example try:
$(fd.control('CustomSubmit').$el).css('background-color','red !important')
1 Like
Yes, this works!
$(fd.control('fieldname').$el).css('background-color','green');
2 Likes
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.
$(fd.field('DateTime1').$el).find('input').css('background-color','green');

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:
background-color:green;
Hi Nikita,
I need to use JavaScript to set the background color of a Cell for a particular field.
Thanks
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:
$('.red-cell').css('background-color','red');
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 :
$(fd.field(newdata1[i]).$el).css('background-color','orange');
$('.multiline').css('background-color','orange');
I also use this one for my normal text fields and this works fine:
$(fd.field(newdata1[i]).$el).find('input').css('background-color','orange');
Is there any possibility to change the color of my multiline plaintextfields?
Best regards
Sternchen
Hello @Sternchen,
Try out like this:
$(fd.field('Field0').$el).find('textarea').css('background-color','orange')
It worked. Thank you
so simple
1 Like