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
- Click on Start Adaptation
- Find the respective field
- Select Change Properties of the field
- 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