> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.opnform.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Enable Calculated Values and Answer Piping in Forms?

How to Enable Calculated Values and Answer Piping

Calculated values and answer piping let you create dynamic variables using formulas and reuse them in integrations like email notifications.

## Steps

1. Go to the form edit page.
2. Click **Settings**, then go to **Variables**.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/b/5/b/1b5b982fc3df6500/chrome0lkcydly3s_1oem03g.png =1297x500)


![](https://storage.crisp.chat/users/helpdesk/website/-/1/b/5/b/1b5b982fc3df6500/chromebnqhayrctm_hh81a3.png =644x500)



1. Click **Add Variable**.
2. Enter a variable name and define your formula.
3. In the formula editor:
* Click **@** to insert a form field value.
* Select the field you want to use.
* Click **fx** to add or edit functions and logic.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/b/5/b/1b5b982fc3df6500/chromeuaxlebwbrh_64tang.png)


6. Click **Create Variable** to save.

## Using the Variable

* Go to your integration (e.g. Email Notification).
* In the email body, click **@** to insert variables.
* Select the calculated variable you created.
* The computed result will be sent automatically in the email or other integrations.


![](https://storage.crisp.chat/users/helpdesk/website/-/1/b/5/b/1b5b982fc3df6500/chromefintwxxlqa_173yyi.png =400x500)


![](https://storage.crisp.chat/users/helpdesk/website/-/1/b/5/b/1b5b982fc3df6500/chromeq7xtczz5i1_ra4cmz.png =872x500)


🧠 Example Formulas for Calculated Values


1. Quiz Scoring (Correct Answer Check)
IF(@FieldName = "Correct Answer", 1, 0)

2. Total Score (Multiple Fields)
IF(@Field1 = "Correct", 1, 0) + IF(@Field2 = "Correct", 1, 0)

3. Price Calculation (Quantity × Price)
@Price * @Quantity

4. Discounted Price
@Price - (@Price * @Discount / 100)

5. Full Name (Answer Piping / Text Combination)
@FirstName + " " + @LastName

## Related Help Page

How do I enable and customize the email sent as a submission confirmation?
https://help.opnform.com/en/article/how-do-i-enable-and-customize-the-email-sent-as-a-submission-confirmation-1339dk8/