Notifications

33 views

Description

Catalog UI policy conditions based on Date field are not working in Service Portal.  

Steps to Reproduce

1. create a new Date field (not Date/Time) on the Incident form

2. Create a UI Policy on Incident:
condition: datefield [relative] [before] [7] [days] [ago]
script to run if true: alert("date too soon");
On load: checked
UI Type (for scripts): All

3. go to /sp?id=form&t=incident&sys_id=-1

In Chrome, the alert doesn't fire on form load (as expected, since there's no value)
In Firefox, the alert shows on load (wrong)

If you add an "and" condition to the UI Policy saying datefield [is not empty], the alert *still* shows on form load in Firefox, so there isn't a practical workaround.

Unchecking "On load" makes this stop happening, of course, but that's not practical for some UI Policies that need to run on form load.

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: PRB1313002

Seen In

Kingston Patch 8
London

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-05-21 11:44:11
Published:2019-05-13