OnChange event on the Client Script removes the space on the "newValue" parameter

Steps to Reproduce

1- Login to Madrid Instance
2- Create Onchange client script with the below alert script
alert ("********** getValue =" +g_form.getValue('description') +"newValue ="+newValue);
3- Open any record on the incident, changed the text on the desciption field, add space before the text
4- The alert from the step2 shows that space on the "newValue" is removed

Note: On the London instance, the space on the "newValue" is not removed


This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available.

Related Problem: PRB1348943

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-06-13 14:43:57