Skip to main content

KI-17

Request Due Date exposed on Request Edit UI prevents saving record changes

Key/Summary

KI-17 Request Due Date exposed on Request Edit UI prevents saving record changes

Status

Done

Created

09/17/2019

Updated

12/19/2019

Description

If the Due Date field on Request is added to the Request Edit UI, all attempts to create and update Requests can be blocked for certain User configurations. This issue seems to be tied to User language and locale settings, that result in errors occurring within the user interface component leveraged to render datetime fields.

Users encountering this issue will see the validation error message configured for the MED_Require_Change_Due_Date_Reason validation rule on the Request object. The full set of languages and locales known to cause issues with the date time user interface component is not known at this time.

Impacted Capabilities

Affected Apps

Medical Information Cloud - Classic

Medical Information Cloud - Lightning

Affects Versions

V7

Fix Version

V8

Steps to Reproduce

1. Add the Due Date field to the 'Request Edit Page' field set on the Request Object 2. Login as a User that has a language setting of French 3. Attempt to create a Request record 4. Observe the validation error message displayed to the User

Workaround

Update the validation formula to ignore consideration of changes to the seconds value for datetime values.

For example:

AND( ISCHANGED(MED_Due_Date__c), OR( DATEVALUE(PRIORVALUE(MED_Due_Date__c)) <> DATEVALUE(MED_Due_Date__c), HOUR(TIMEVALUE(PRIORVALUE(MED_Due_Date__c))) <> HOUR(TIMEVALUE(MED_Due_Date__c)), MINUTE(TIMEVALUE(PRIORVALUE(MED_Due_Date__c))) <> MINUTE(TIMEVALUE(MED_Due_Date__c)) ),NOT(ISBLANK(PRIORVALUE(MED_Due_Date__c))), ISBLANK(MED_Changed_Due_Date_Reason__c), !$Permission.MED_Bypass_Validation )