# Set Field Value Action

A set field action requires the selection of a form field and a "value" that will be set into the field.  The "value" can be either:

* A specific value that may be a number, some text, true/false, etc.
* An expression that combines specific values and/or fields using arithmetic/text/logic operators and optionally parenthesis.

To support the above possibilities, set field actions support both a value entry "mode" and an expression entry "mode".  Set field actions will always start in value entry mode.  In value entry mode you may simply enter a number or text or if the field is a select type field, select one of the select options. &#x20;

<figure><img src="https://640450274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHAVngDAEk3s8Bw7P6Ntz%2Fuploads%2F3QAbI5fld2zkQzQ0NZTG%2Fimage.png?alt=media&#x26;token=2a4176fb-5bb8-4943-be16-6389be4f8032" alt=""><figcaption></figcaption></figure>

The set field actions have an overflow menu (3-dot icon) that has an option to put the input into expression input mode (see above).  In expression input mode, enter specific values and/or select fields and combine them with operators and parenthesis as needed.

Here are some very simple examples:

<figure><img src="https://640450274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHAVngDAEk3s8Bw7P6Ntz%2Fuploads%2FhlHtyfeiYKiGO7BPLLNw%2Fimage.png?alt=media&#x26;token=0f096a74-3f7f-4ce3-8db8-b97ab4a02524" alt=""><figcaption><p>Example Rule Builder numeric expression</p></figcaption></figure>

<figure><img src="https://640450274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHAVngDAEk3s8Bw7P6Ntz%2Fuploads%2Fm09GueKVkt82O9uPVWoo%2Fimage.png?alt=media&#x26;token=203fd386-4124-4a58-8e0c-40dbffb0a1c0" alt=""><figcaption><p>Example Rule Builder Expression combining text</p></figcaption></figure>

## Expression Operators

The following operators are supported in expressions.  Parenthesis are also supported for numeric expressions.

| Operator | Name                  | Purpose                                               | Example                    |
| -------- | --------------------- | ----------------------------------------------------- | -------------------------- |
| +        | Addition              | Add two numeric sub-expressions                       | a + b                      |
| -        | Subtraction           | Subtract two numeric sub-expressions                  | a - b                      |
| \*       | Multiplication        | Multiply two numeric sub-expressions                  | a \* b                     |
| /        | Division              | Divide two numeric sub-expressions                    | a / b                      |
| +        | Concatenation         | Concatenate two text sub-expressions                  | firstName + " " + lastName |
| ==, ===  | Equality              | Compare two sub-expressions for equality              | a == b                     |
| !=, !==  | Inequality            | Compare two sub-expressions for inequality            | a !== b                    |
| >        | Greater than          | Compare two sub-expressions for greater than          | a > b                      |
| >=       | Greater than or equal | Compare two sub-expressions for greater than or equal | a >= b                     |
| <        | Less than             | Compare two sub-expressions for less than             | a < b                      |
| <=       | Less than or equal    | Compare two sub-expressions for less than or equal    | a <= b                     |
