Create rules using the rule editor
Define variables and add a Javascript expression in the rule editor to create your rules. You can create rules to calculate values, create autommated queries and send email notifications. If your rule fails to work as expected you can debug your rule to identify any errors and correct rule logic.
- Define rule variables
As you create custom rules, define variables referring to collected data to use within your rule expression. - Create a rule for a calculated value
You can create a rule that enables the system to automatically calculate a value in a form. This allows you to automatically calculate certain values based on manually entered form data. reducing calculation errors and simplifying forms. - Create a rule for an automated query
You can create a rule that generates an automated query if the value entered by the site does not meet the acceptance criteria defined by the rule logic. The query message lets users know they should verify their entry and correct any errors. - Create a rule to send an email notification
You can notify designated team members by creating a rule that sends an automatic email notification when specific criteria is met. The usual steps for creating and managing custom rules still apply. - Use predictive text to write rules
Use predictive text to add suggested variable names, basic JavaScript syntax, Subject attributes and rule helper functions to your rule expression. - Debug a rule
Rule designers can debug rules by using logMsg() statements to obtain information regarding the rule logic and make sure it works as desired.
Parent topic: Create and manage custom rules