Is there a way to read all child objects and if anything meets the condition, the field should be required? Example required condition: $( [OrganizationalUnit#.Tag][PflichtfeldDefinition#.Tag]CurrentStatus == "Condition 1" && [OrganizationalUnit#.Tag][PflichtfeldDefinition#.Tag]ChangeTyp == "Condition 2" )
Example of this working through the demo DB in relation to the Incident and the relationship with Task.Assignments. Basically a field on Incident to be required if one or more Task.Assignment records has a Status of either Completed or Assigned.
1. Add a new text field named ActiveAsgnmnts on the Incident object. Add this field to the form to test based on results but is not required.
2. Add a second text field to Incident named TestRequired. Added this field to the Form and under its Control Properties set Required to the following expression:
3. Create a new Calculation rule with a Condition of "Always" using the following Expression:
Essentially what this does is whenever the Incident is modified or an assignment is modified, the ChildFold will count the number of child objects where the Status is equal to Completed or Accepted and will place that number value into my ActiveAsgnmnts field. If that value is greater or equal to 1 then the TestRequired field becomes required.