Disabled field label colour
Hi everyone
I have a couple of fields on a form that have false as the enabled expression. We need to disable these fields as they are set when the item is created via a workflow, but they need to be displayed on the form for information.
When I set the field to disabled the font colour for the field label shows as grey. Is there a way to force the font colour to remain the same as the enabled fields on the form? I've experimented with setting style="color: black" on different div tags in the source code but this doesn't seem to make any difference.
Thanks in advance for your help.
-
Hi Gareth,
It is possible to get the labels in black, but that might also confuse the end user since they can’t click in those fields since they are not enabled.
When you hit F12 and then select the label the selector you can see which style/css selector is used to make it gray.
Now you can add a script editor webpart above the form and add the following style to make it black again:
<style>
.ard-enabledExpression-disabled .ms-formlabel h3 { color:#000; }
</style>
I hope this solves your issue.
Bart
0
Please sign in to leave a comment.
Comments
1 comment