Skip to main content

Functions

Functions are a powerful feature in Array that allow you to automate calculations, display dynamic text, and assign values to elements based on user input.

Updated over 3 months ago

In this guide, we’ll cover:

  • How to access and set up a function

  • Applying a function to a form element

  • Types of functions:

    • Text Functions

    • Formula Functions

    • Value Functions

  • Real-world examples

Accessing Functions

To get started, open your form in the Form Builder. The Functions tab is located in the bottom-right corner of the builder interface.

34-1

Click the tab to open the Functions Panel.

35-1

Creating Your First Function

  1. In the Functions Panel, click the + (plus) button in the top-right corner.

  2. Choose the type of function you want to create:

    • Text

    • Formula (Sum)

    • Value (Answer)

      36
  3. Name your function — this name will appear in the toolbar when applying functions to elements.

Depending on the function type, you’ll be able to use one or more of the following inputs:

Input Type

Description

Form Field Value

Pulls data from another field in your form.

Variable Value

Uses a value from another function.

Fixed Value

Manually entered value (available in Formula functions).

You can continue building your function by clicking the + button to add additional logic, or delete the function using the trash bin icon.

Applying a Function to a Form Element

Once your function is created, applying it is easy:

  1. Click on the element you want to apply the function to — it will be highlighted.

  2. On the right-hand panel (element settings), locate the Function dropdown.

  3. Choose the function you want to apply.

After publishing your form, any element with a function applied will display a Function icon next to it.

Text Functions

Text Functions allow you to combine multiple text fields or reuse values across your form. This is ideal when users enter the same information multiple times (e.g., names or email addresses).

Example Use Case:

Link multiple "Name" fields so the user only needs to enter their name once.

How to Create:

  1. Open the Functions tab, click +, then select Text.

  2. Choose Form Field Value, and select the "Name" field.

  3. Optionally, add a join text (e.g., a space or dash) and another Form Field Value or Variable.

  4. Repeat to join as many values as needed.

Apply this function to other text fields to auto-fill them based on the original entry.

Formula Functions

Formula Functions perform calculations like addition, subtraction, multiplication, and division. They are perfect for forms that require totals or calculated values.

Example Use Case:

Calculate the total price based on multiple number inputs (e.g., item quantities and costs).

How to Create:

  1. Open the Functions tab, click +, then select Formula.

  2. Add a Form Field Value (e.g., "Number 1").

  3. Click +, then select an operation (Add, Subtract, Multiply, Divide).

  4. Add another Form Field Value, Variable, or Fixed Value.

  5. Repeat as needed to complete the formula.

Apply the function to a Number or Short Answer field to display the calculated result.

Value Functions

Value Functions allow you to assign numerical or text values to multiple-choice fields (e.g., radio buttons, checkboxes, dropdowns). These values can then be used in calculations or displayed elsewhere in the form.

Example Use Case:

Assign numerical values to survey questions for scoring purposes.

How to Create:

  1. Open the Functions tab, click +, then select Value.

  2. Choose a form field (e.g., a dropdown or radio list).

  3. For each option, assign a Text or Numeric value.

  4. Define the Target Type:

    • Fixed Value — a manually entered number or text.

    • Function Value — pulls from another function.

    • Form Field Value — pulls from another form element.

  5. (Optional) Use the + button to add more elements and create a combined score or result.

    answerfunction3png

To display the result, add a Short Answer or Number Field, select it, and assign the value function.

Full Example: Combining All Functions

Imagine you're building a conference registration form:

  • Text Function: Combines First Name and Last Name into a Full Name field.

  • Formula Function: Calculates the total cost of registration based on selected workshops.

  • Value Function: Assigns points to workshop interest checkboxes and displays a total interest score.

Each function helps streamline the form, reduce manual entry, and enhance the user experience.

Try It Yourself

Explore our interactive demo form to see all three functions in action. See how they update in real time as you complete the form.

Did this answer your question?