Forms Designer - Insert Account Variable

Modified on 2023/08/02 22:59 by Adam — Categorized as: Uncategorized

A Variable is used to reference a piece of information outside of the form. 

The Forms Designer contains 6 categories of Variables;
Account Variables
FEMA Variables
Parcel Variables
Soil Variables
Topo Variables
NDVI Variables


Image

This page covers the Account Variables. These variables are setup by the AgriData, Inc developers and cannot be created by the end user. 

An example would be mapAcres - this variable is used to generate the acres of the selected or drawn border and would change each time a form is generated depending on what borders are selected or drawn.

Click Here or scroll to the bottom of the page to Jump to the List of Variables and their descriptions.

Using Account Variables in the Forms Designer

A list of available Account Variables is located in the Forms Designer menu bar under Insert > Insert Variables > Account Variables

There are a few different ways to incorporate Variables into your custom form.

The first way is to place it into a Text Box, Label, Text Area, Drop Down List, or Drop Down Combo by itself.

First place and select the Text field that you would like to insert a variable into. 

Image

Now place you cursor into the Text area of the Properties panel, highlight and delete the existing text if not wanted. 

Image

To signify that the text that is being put in is not meant to be literal, an equals sign (=) is required to be placed before the variable.

Image

With the cursor still behind the equals sign, hover over Insert > Insert Variable > Account Variable.

The list that appears contains many of the usable Variables.

A list of all available variables that can be used.

A list of all available variables that can be used.

]

For this one I am going to select mapCenter

It will place "@mapCenter" into the text area behind the equals (=) sign.

Here is an example of a correctly formatted Variable by itself
 =@mapCenter 
An example of an incorrectly formatted Variable by itself
 @mapCenter 

Another way to incorporate a variable into your form is to put it into a formula. 

Lets take the  variables mapState and mapCounty for example. Rarely are these 2 variables going to be sitting by themselves. 

mapCounty is the county where the center of the map lies. 

mapState is the state of the map center. 

So if we wanted to always show the county, state of the mapped area the best way to do this is to put them in a formula together.


Correct
 =@mapCounty + ", " + @mapState 
What appears when generated
Correctly formatted

Correctly formatted


Here is what displays when incorrect formatting of the formula occurs:

Incorrect
 =@mapCounty, @mapState 
What appears when generated
Incorrectly formatted

Incorrectly formatted


We were able to use a basic formula to save time and space by not needing to create more than one text area to individually put the 2 variables in.

See the Formulas Page


List of Variables



See Also: