Set required fields programmatically

1
How can you set required fields programmatically ?, ie from runtime through the browser application ?
asked
2 answers
2

Use a before commit event on the entity. Create complex logic to define the required fields. Create a validation message if the entity does not comply to your rules.

For example (in text)

if MyRules/NameNeeded and MyEntity/Name = empty then .....
answered
0

Use a microflow on the domain model events tab on create?

answered