Symptom
You have set a rule for Mandatory property for an extension field. Result is true.
Now you want to set a rule for Visibility property, but the property is disabled.
Reproducing the Issue
-
Go to any WC.
- In adaptation mode, go to any extension field.
- Set a mandatory rule for the field. The result should be true.
- End adaptation mode.
- Enter adaptation mode again.
- Check for field properties and the Visible checkbox will be disabled.
- Remove the rule for Mandatory property.
- End adaptation mode.
- Enter adaptation mode again.
- Check for field properties and the Visible checkbox will be enabled.
Cause
Mandatory and Visibility are mutually exclusive. Ideally we wont allow setting rules for both as one rule can say visibility false
and another rule can say mandatory is true.
Due to this we disable rule option for visibility whenever the rule is assigned to mandatory and its returning true.
But if you do the visibility rule first and then mandatory, it is possible to have rules in both.
Important: The rules should not end up in a deadlock scenario where mandatory is true and visibility is false.
Resolution
If you do the visibility rule first and then mandatory, it is possible to have rules in both.
Important: The rules should not end up in a deadlock scenario where mandatory is true and visibility is false.
Keywords
mandatory, visibility, field properties, extension fields, adaptation, field settings , KBA , BC-DWB-REP-EXT , Extensibility , Problem