Notifications

3 views

Description

Commenting out the last line of a validation script (which is used by a form), causes issue in form layout. Right-clicking on form header or a field's name doesn't display a popupĀ 

Steps to Reproduce

1. Go to 'Integer' validation script.
2. Modify the 'Validator' as follows;
[code]<pre>
function validate(value) { return true; }
//function validate(value) {

// if(!containsOnlyChars( g_user_grouping_separator + " 0123456789-", value))
// return new GwtMessage().getMessage("Invalid integer");
// return true;
// }
</pre>[/code]

* Make sure the last line of Validator is commented out
3. Go to any incident record
4. Right-click on form header or a field's name

Actual behavior: browser's right click menu appears
Expected behavior: form's or field's context menu appears

Workaround

Simple delete the commented out lines or add an empty line at the end of Validator script


Related Problem: PRB1311044

Seen In

There is no data to report.

Intended Fix Version

Madrid

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:2018-12-03 11:25:16
Published:2018-12-03