- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-23-2025 03:04 AM
I am having an issue atm where I want certain fields to be read only but on the service portal it puts a black background in the field
It is doing this for me as admin so i don't believe it is an ACL causing it as it should bypass them as admin
This form is from a catalog item all the variables are single line text fields that are prepopulated based off the name entered.
I can only assume it is a style or theme possible causing it.
It is only on the portal end the back end fields are fine once submitted.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-23-2025 04:09 AM
open your portal record and check the theme
Search in the css variables if someone did the change recently by comparing the versions
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-24-2025 01:05 AM
@Ankur Bawiskar
Thank you for your assistance
I have managed to fix this by
Finding the theme as recommended
Then creating a new Style Sheet with the below script
input[readonly] {
background-color: #f5f5f5 !important;
color: #000 !important;
border: 1px solid #ccc !important;
box-shadow: none !important;
outline: none !important;
}
And adding that to the theme
This now shows the fields like this
So no longer have the issue with it displaying as black
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-24-2025 02:00 AM
Thank you for marking my response as helpful.
It seems you marked your own response as correct.
Would you mind marking my response as correct as I was able to help you and provide the solution?
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader