Using Rules
You can specify conditional rules for how fields behave so that your details screen displays different fields, or makes them, say, mandatory or options, depending on dynamically changing conditions.
Last updated
You can specify conditional rules for how fields behave so that your details screen displays different fields, or makes them, say, mandatory or options, depending on dynamically changing conditions.
Last updated
You can learn more about using dynamic logic in the .
For demonstration purposes, we will create a rule in the call submissions screen in the Self Service Portal for if the urgency of the call is "Immediate". We can then use that rule to hide certain fields that may not be necessary when time is of the essence.
When creating rules and fields in ASM Designer, it's crucial to avoid using characters such as . , % $ @ " ' / and \ in the name. These characters are reserved and have special significance in SQL, the language used for managing and manipulating databases. If these characters are included in a field name, particularly at the start. They are automatically added to the database name as is. Their use can lead to potential issues or errors in SQL operations because these characters might be interpreted in a way that was not intended, affecting the execution of SQL commands. To ensure smooth operation and to avoid database errors, it's recommended to refrain from using these characters in names.
In SQL, beyond the common characters listed above, there are several reserved special characters and keywords that should be avoided. These include but are not limited to:
Semicolon (;): Used to separate statements.
Quotes (both single ' and double "): Used for string literals and object identifiers, respectively.
Percent sign (%), and square brackets ([]): Used in LIKE clauses for pattern matching.
Asterisk (*): Used in SELECT statements to select all columns.
Hyphen (-): Used for comments when doubled (--), and can be misinterpreted.
Plus (+), minus (-), slash (/), and backslash (\): Arithmetic operators and escape characters.
AT Symbol (@):In T-SQL, the @
symbol is used to declare a variable.
Select the Rules tab.
Double click on an existing rule if you wish to update it, or select Create New to create a new rule.
The Field Rule Configuration window appears.
Provide a name for the rule if you are creating a new rule.
Select the editing box.
Scroll to view a list of all possible values from a multi-tiered list, and choose the field for which you want to create a rule.
In the next field, select an operator. The operators you can pick depend on the item you selected. You can pick from standard boolean values: =, <>, <=, contains, starts with, ends with, and so on.
Select the value or criteria for the field from the drop-down list in the next field.
The items you can select are filtered to show relevant fields of the same data type as the selected field. If an item is not available for selection it is shown in italics allowing you to expand the next tier in a multi-tier list to choose an item from a lower tier.
Add further criteria by selecting the And, Or or Not buttons.
Group your criteria if necessary using the Group button. This will insert parentheses around the selected part of a statement. Those criteria contained within the parentheses are evaluated first and the result then processed as part of the entire statement. Otherwise, Not statements will be evaluated before And, and And before Or.
When done select OK.
Apply the rule to the relevant field by selecting the field. The Field Settings tab is automatically displayed. In the Field Settings, use the drop-down lists to select where to apply the rule. Different field types display the option to apply a rule in slightly different ways.
Scroll to the bottom of the screen if necessary and select Save to save the changes.
Can I apply many rules to a single screen element?
No just one. If you want to apply two rules, just create a third rule that contains both of the others.
Are rules available on other screens?
Yes - you can see rules from parent screens.
If I clone a screen with rules, are the original rules available on the new screen?
Yes
Does this affect the behavior of the Unique field property?
No – that continues to work as before.