Highlighting A Field Via Adf.error.addAttribute() Not Working

(Doc ID 2284355.1)

Last updated on JULY 07, 2017

Applies to:

Oracle Fusion Sales - Version and later
Information in this document applies to any platform.


On : version, Accounts, Contacts, Households

Highlighting a field via adf.error.addAttribute() not working

Trying to enforce a field to be mandatory via an Account Object validation using the following script:

if(!CustomField_c) {
  return false
return true

The script works, but user was expecting that the field CustomField is highlighted when the error is thrown, but this doesn't happen.

The field should be highlighted with a red mark instead of a pop-up message being displayed

The issue can be reproduced at will with the following steps:
1. Add the validation in the Account object
2. Create or update an Account and leave the CustomField blank
3. Verify that you cannot save the record but the when pushing save the field is not highlighted in red

The issue has the following business impact:
Due to this issue, users cannot verify easily which field is required


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms