Change background color for HTML field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:55 PM
Hello!
I have a custom table which contains an HTML field.
When the field is editable, the field looks like this:
When the field is set to read-only it looks like this:
Is it possible to set the background to gray similar to a text field as seen below:
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 11:05 PM - edited 06-02-2025 11:05 PM
Hi @ceraulo ,
You can make it disabled using "g_form.setDisabled('field_name', true);" in client script which will grey out Configuration item field.
But, it's suitable when you need to completely prevent any user interaction with a field, including copying text or selecting options.
Please check and Mark Helpful and Correct if it really helps you.
Regards,
Mayur Shardul
ServiceNow Rising Star 2024