For a simple onChange client script working on a reference field, the confirm function does not work any longer in Chrome (version 69 onwards). The function returns a default value of false and can therefore cause issues with scripts.

Steps to Reproduce

1. Make sure the Chrome version this is being tested on is Chrome 70.

2. Create a simple onChange client script on a reference field, like Business Service on Incident form.

3. Add the folllowing code to the script:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
//Type appropriate comment here, and begin script below
var ans = confirm("this is a test");

4. Save the script.

5. Open any incident record and try to change the value for the Business Service field.

No confirm popup shows and the alert shows up directly with the result from the confirm function defaulting to false.

On previous Chrome v64 and on Internet Explorer the issue does not occur.


This problem is fixed in all currently supported releases. Review the Fixed In section to determine the latest version with a permanent fix your instance can be upgraded to.

Related Problem: PRB1315948

Seen In

There is no data to report.

Fixed In

New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-07-19 07:51:54