Add border to HTML field when its read only ( medium/hard easy points )

juan casas
Mega Expert

I know its a property, but I am kinda running out of time to research.

 

when a field of type=html becomes read only, the border around the field goes away, can I make this stop?

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Description

HTML fields that are set to be read-only cause the scrollbars to disappear.

Steps to Reproduce

 

  1. Create an HTML field
  2. Create a Field style:
    • resize: both;
    • overflow: scroll;
    • height: 200px;
  3. Add the field to form, ie sc_req_item, incident
  4. Add content to field forcing scroll windows to appear
  5. Set the field read-only in the dictionary

Expected result: Scrollbars still appear despite being read-only (element is overflow: scroll)

Actual result: Scrollbars disappear so unable to read all data in the field (element is overflow: hidden)

Workaround

This issue has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.

Best Regards
Aman Kumar

View solution in original post

2 REPLIES 2

Aman Kumar S
Kilo Patron

Description

HTML fields that are set to be read-only cause the scrollbars to disappear.

Steps to Reproduce

 

  1. Create an HTML field
  2. Create a Field style:
    • resize: both;
    • overflow: scroll;
    • height: 200px;
  3. Add the field to form, ie sc_req_item, incident
  4. Add content to field forcing scroll windows to appear
  5. Set the field read-only in the dictionary

Expected result: Scrollbars still appear despite being read-only (element is overflow: scroll)

Actual result: Scrollbars disappear so unable to read all data in the field (element is overflow: hidden)

Workaround

This issue has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.

Best Regards
Aman Kumar

I reposted the question:: https://community.servicenow.com/community?id=community_question&sys_id=f8bb88acdb85d950b5d6e6be139619cb

 

 

that answer didn't work 😞