Variable Properties
Variable Properties serve a vital role in Formulas by allowing you to define and classify the Variable value that you are using in any formula. Although we will cover the various Variable Types & Properties available, let's look at a simple example to illustrate how they are used in CoreBridge.
For example, let's say you are working on an Order Entry form in the Form Designer and:
- You create two Numeric Input Elements (Variables) with the variable names of Height and Width.
- You then create one Numeric Input Element (Variable) with the variable name of Area. We want the displayed result of this variable to be in Square Feet.
- As such, you set the default value for the Area variable to use a formula of:
= Height * Width
- At first glance, this seems correct, however you will receive an error upon saving because we have not defined the variable properties for Height and Width that are needed to tell the Area variable what type of result value you want output from Height and Width in the formula. Do we want the result to be in Square Feet, Square Inches, Square Meters?
This is where Variable Properties play their vital role in that they define the type of value you want the result in your formula to be which in this case is Square Feet. To accomplish that, our formula needs to change to InFeet so that when multiplied by each other the result will become Square Feet as shown below:= Height.InFeet * Width.InFeet
blah