Wix Automations: Customizing Your Data with a Formula Field
Before you begin:
This article is intended for advanced users. Creating advanced expressions using the formula field requires familiarity with schema properties and data types/formats.
In Wix Automations, use the formula field to build complex expressions and manipulate data. It enables you to create custom workflows using a combination of functions and schema properties.
To convert an automation field into a formula field, click Customize above the field. This opens a comprehensive list of data types, functions, values, and schema properties, providing everything you need to build your expression.

The formula field tabs
When you convert a field into a formula field, multiple tabs help you build expressions and logic for your automation flows. Click their names at the top to navigate between tabs and select elements to add to your expression.
The Properties tab
The Properties tab lists all the data available from the triggers and actions in your automation flow. For example, if the trigger is Wix Forms, this tab displays form-related data, such as form fields. Learn more about using the property picker.
The Functions tab
The Functions tab offers a categorized library of customizable functions to help you build complex logic. Functions are grouped into categories like Math, Text, Date & Time, Array, and Logic. Hover over a function to view details, including its description, examples, and return data type.

Important tips:
Ensure you're using the correct input data type and consider the output of the function. For example, if you choose a Text data type like 'Contact Email' in a Sum function, you will encounter an error (see the image below). The Sum function requires a numeric input, not text.
If you need to replace the data type (e.g., replace a 'Sum' function with a 'Concat' function which expects text) click Clear at the top right of the formula field to reset the expected output type. Otherwise, you will receive an error, as the field already expects a number output.

The Values tab
The Values tab provides context-specific values for your flow, including those from triggers and general values like the current date, which can be selected using the date picker. These values can be used as inputs when building your expressions.
Building an expression with the formula field
Customize your automation flow by converting a field into a formula field. This allows you to build complex expressions using the different tabs.
To build an expression with the formula field:
Click the step you want to adjust (e.g., condition).
Click Customize next to a field to convert it into a formula field.
Build your expression using the Properties, Function, and Values tabs.
Click Apply.
Click the example below to view step-by-step instructions of how to set up an expression with the formula field.
Example of using the formula field to build an automation
Sarah owns an online store. She wants to automate a check on all new products created to see if their profit margins fall below a certain percentage of their cost. If they do, a member of Sarah's team should automatically receive a task to enhance that product's profitability. She can set up this automation using a formula field.
To build this automation using a formula field:
Make sure Product created is selected as the trigger.
Click + to add a step.
Click Condition.
Click the property pop-up to select Profit.

Cilck the Select logic drop-down and select 'is less than' under the Number data type.
Click Customize to convert the 'Enter a number' field into a formula field.
Click the Functions tab to start building your expression.
Under Math functions select Multiply.
Click the Properties tab.
Select Item Cost from the list (use the search bar if you can't locate it).
Enter the relevant percentage (e.g, 1.2) to the right of the semicolon in the expression.

Click Apply.
Click + to add a step in the Then flow.
Click Action.
Click Create a task.
Continue customizing your action:
Add a task for you or your team: Write in a description of the task or instructions.
Assign to you or your team: Select as assignee for the task.
Set a due date: Toggle on or off a due date for the task.
Number of days to complete task: Set the number of days assigned to complete the task.
Click Activate.

FAQs
Click a question below to learn more about using the formula field in Wix Automations.
How do I know if a field is a formula field?
If a field has a sigma icon, it can be converted into a formula field. Click Customize to open the list of properties, functions, and values.

Can I revert a formula field back to its original type?
Yes. You can easily switch a formula field back to its original configuration by clicking the Clear button.
What data types are supported in the formula field?
Most common data types are supported, including text, numbers, dates, and arrays. However, some advanced configurations might restrict certain inputs, such as objects or specific types of arrays.
What if my formula contains errors?
If your formula has errors, they will be clearly highlighted with messages explaining the issue. You’ll need to fix these errors before you can save the formula. Learn more about resolving errors in your formula.
Can I use keyboard operators when building my formula such as '?,-,=,+'?
Currently, keyboard operators like ?,+, -, and = are not supported. Instead, there are dedicated functions designed for these arithmetic operations.
What are some tips for using a formula field effectively?
Start with simple formulas and gradually introduce complexity as needed.
Leverage nesting by using functions as arguments for other functions to achieve advanced logic (and make sure they return the expected input).
Consult function descriptions and examples.