Issue
- I would like to create a custom rule for our forms
- Could you please suggest if rules can be created by custom development? Could not find any article related to that.
- Apparently there is some API for doing this
- In Liferay DXP 7.1 Datasheet, Under Forms and Workflows --> Conditional Rules --> "API for customized rules"
-
Liferay DXP Features Overview Comparison
Under Form Rules --> "...and an API to create and execute new customized rules for your form needs."
Environment
- Liferay DXP 7.1
Resolution
-
It is possible to create programmatic customized rules, they just don't reflect on the UI and can be used only with programmatic forms.
-
The action of the custom rule can be defined implementing one of the DDMExpressionFunction nested interfaces, as you can see here and here.
After creating your function, you can use it in a programmatic defined form with a condition, as you can see here.