You are here: Record management > Creating a rule or data instance > Adding and extending warnings on the create form

Adding and extending warnings on the create form

Warnings appear on the Create form when the rule type you are creating has a more guardrail compliant alternative. For example, use the report definition rule instead of the deprecated list view rule.

To add more warnings to this form, complete the following steps.

  1. Create a field value that contains your custom warning.

  2. Override the standard section @baseclass.pyRuleCreationWarning to reference your custom warning.

    Specify the class of the rule type you are creating as the applies to key part of the section.

  3. Override the @baseclass.pyRuleCreationWarning decision table to add the type of rule you are creating.

Refer to the section Rule-Obj-Activity.pyRuleCreationWarning as an example.

To extend the warning criteria evaluated on save of a rule, create a new message and override the @baseclass.CheckForCustomWarnings extension point.