Notifications

203 views

Description

When user has set his date format other than System format (which usually is YYYY-MM-dd) , any UI policy that checks if the date selected for a variable is before today, fails in Service Portal. It works only with the above format.

Steps to Reproduce

  1. Create a Catalog item (optional)
  2. Create a Variable in it as type of Date. Let's name it start_date
  3. Create a UI Policy with below condition:
    When to run : [start_date] [before] [today] 

    Run Script : True

    Execute If true:

    function onCondition() {

    alert('true case: before today');

    }
  4. Set logged in user's Date format as YYYY-MM-DD
  5. Go to Service Portal, and set some date prior to today
  6. Notice alert will appear
  7. Set Date format as dd/MM/YYYY
  8. Go to Service Portal, and set some date prior to today

Expected Result : Alert should appear

Actual Result : Alert does not appear

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. 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: PRB1332227

Seen In

Helsinki Patch 3
Helsinki Patch 4

Intended Fix Version

New York

Fixed In

London Patch 9
Madrid Patch 5

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-31 12:34:42
Published:2019-04-29