...
Expand | |||||
---|---|---|---|---|---|
| |||||
Let's take a look at a simple example. Imagine a form with 3 fields named Name, Status and Money. Rule Requirement: If the Name field contains "John" and the Status field contains "satisfied" then prepopulate populate the Money field with 50000.00 else populate the Money field with 1000.00. One way to write this rule in JavaScript is to use nested if statements:
If you are using the Visual Rule Builder to achieve the same result, you will have to add two rules:
|