SAP Knowledge Base Article - Public

2497127 - Rules Are Not Working for Extension Fields

Symptom

You try to create a rule for an extension field that depends on another field to be Mandatory/Visible/Read Only or not.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Click on Start Adaptation
  2. Find the respective field
  3. Select Change Properties of the field
  4. Click on Rule

Cause

Once you are using a rule for this field as such as Mandatory/Visible/Read Only, it is not necessary check the box of Mandatory/Visible/Read Only option.

Resolution

You can use the condition below for example and uncheck the Mandatory/Visible/Read Only option for the field.

IF logical_expression, value_if_true, value_if_false)

For example:

IF(Root.CountryCode == 'US', false, true)

Keywords

KBA , extension field , rule , AP-RC-UIF , C4C UI Framework , How To

Product

SAP Cloud for Customer add-ins all versions