Using rules example
Example: Within the shipment order screen, when a user creates a new shipment order and specifies a date in the Requested Ship Date field, you can create a rule that requires the user to also specify a date in the Scheduled Ship Date and Promised Ship Date fields.
You should create two steps for the rule.
Step 1:
Expression: | ||
---|---|---|
Widget | Operator | Value |
Requested Ship Date | IS NOT NULL |
Action: | ||
---|---|---|
Widget | Property | Value |
Scheduled Ship Date | Required | True |
Promised Ship Date | Required | True |
Step 2:
Expression: | ||
---|---|---|
Widget | Operator | Value |
Requested Ship Date | IS NULL |
Action: | ||
---|---|---|
Widget | Property | Value |
Scheduled Ship Date | Required | False |
Promised Ship Date | Required | False |
Note that Step 2 resets the property of the Scheduled Ship Date and Promised Ship Date fields to False and changes the fields to not required when the user clears the data in the Requested Ship Date field. If you do not add Step 2 in this example, the fields would still be required even after the user clears the values in the Requested Ship Date field.