Notifications

94 views

Description

If an HTML field is set to read only from the dictionary, the field does not resize the height fully to display all contents

Steps to Reproduce

1. Create a new HTML field on the incident table and tick the "Read only" flag
2. Create an onchange client script with the following:

Table: Incident
UI Type: All
Field name: Category
Script:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

//Type appropriate comment here, and begin script below
var longstr = ''; // put in a really long string around 500 words or over 2000 characters

if (newValue == "software") {
g_form.setValue(<name of read only HTML field>, longstr);
}
}

3. Open any incident record and change the Category to "Software"

Expected behavior: The read only HTML field should auto resize the height to display all contents

Actual behavior: The read only HTML field does not auto resize the height to display all contents. It only displays the first line of text

Workaround

This problem 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.

 


Related Problem: PRB1333912

Seen In

There is no data to report.

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-07-10 16:15:14
Published:2019-07-10