cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to create field in backoffice mandatory, if at another field was entered some value

0 Likes
898

Hi All,

in Backoffice I have field A with enum b & c. If I fill in field A with enum c, I want to make field D is mandatory before the change was saved.

is that possible to achieve conditional logic like that in Backoffice ?

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor
0 Likes

I think you can achieve what you want with Validation Service in Backoffice Framework. A validation with ERROR severity will prevent saving the model. If OOTB constraints does not meet your needs, you can create a custom constraint by following the documentation about Customizing Data Validation Framework.

Hope this helps

0 Likes

Thanks for the link. I can achieve that with Dynamic Constraint with BeanShell interpreter.

Answers (1)

Answers (1)

former_member506
Participant

Hello,

You can do in multiple ways.

1. using validation service in Backoffice Framework.

Link

after-typing validation / on-save validation inline editor area

2. Or simply use Save listeners on Type.

3. If it's common validation in the system, use Constraints directly.

Thanks!