# Calculations with custom fields

**URL:** <https://forum.manager.io/t/calculations-with-custom-fields/39356>\
**Category:** Uncategorized\
**Created:** [January 17, 2022, 1:29pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356 "2022-01-17T13:29:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Saif](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ahmed_saif/32/24136_2.png) [@Ahmed\_Saif](https://forum.manager.io/u/Ahmed_Saif)\
**Post date:** [January 17, 2022, 1:29pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/1 "2022-01-17T13:29:11Z")

</div>

![2](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/a/1/a1331aa173833fd687cf6a69cd0084336bc79130.jpeg)  
Please see this photo  
i want to make Auto Sum in a Custom Field  
please tell me How Please  
i want to make many Of these … i know about programing and coding ( HTML )  
but Please show me how i can do this  
thanks

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 17, 2022, 1:42pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/2 "2022-01-17T13:42:24Z")

</div>

You can’t have auto summation in a custom field. What you could do is either:

- Use infield calculations for the summary field:

```auto
3444823 + 848

```

Or

- Drop the summary custom field altogether and use a custom theme to do the calculation for you.

---

<div class="post-metadata">

**Author:** ![Ahmed\_Saif](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ahmed_saif/32/24136_2.png) [@Ahmed\_Saif](https://forum.manager.io/u/Ahmed_Saif)\
**Post date:** [January 17, 2022, 2:24pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/3 "2022-01-17T14:24:23Z")

</div>

![2](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/7/4/741c4719670ac7a1d36f85a759552c8f1b04ccca.jpeg)  
OK  
i made AA Custom Them But it’s empty  
what should i do in this case ?  
should i write codes in custom a and use it like in picture ?  
and please code you tell me the code ? to sum in Field “Sum”

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 17, 2022, 2:45pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/4 "2022-01-17T14:45:00Z")

</div>

> [@Ealfardan](#):
>
> **Drop the summary custom field altogether** and use a custom theme to do the calculation for you.

If you’re using a theme, you should drop the Sum custom field entirely since it’s not an input.

In the theme you can use this code to define the sum:

```auto
{% assign SUM = custom_fields['Field 1'].text | plus: custom_fields['Field 2'].text %}

```

And then you can place `{{ SUM }}` anywhere in your theme to display it in the **View** screen.

---

<div class="post-metadata">

**Author:** ![Ahmed\_Saif](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ahmed_saif/32/24136_2.png) [@Ahmed\_Saif](https://forum.manager.io/u/Ahmed_Saif)\
**Post date:** [January 17, 2022, 2:56pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/5 "2022-01-17T14:56:20Z")

</div>

![2](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/a/a/aa910b932bf5ada10e39723cf2436a3089a7ef90.jpeg)  
 ![3](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/0/9/090e836e42fa246d116a98743cd9a6fc36078ba3.jpeg)  
Ok i did like that  
But i don’t understand ( And then you can place `{{ SUM }}` anywhere in your theme to display it in the **View** screen. )  
please can you tell me exactly what i have to do ?  
this is a sales Invoice page  
i am so so sorry because i didn’t get it yet …  
and thanks for your help … i wish to you happy Life 🙂

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [January 17, 2022, 3:46pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/6 "2022-01-17T15:46:20Z")

</div>

@Ahmed_Saif, there is an illustrated Guide about calculations in themes using custom fields: [https://www.manager.io/guides/17115](https://www.manager.io/guides/17115).

I also retitled this thread. “Please help” does not get you assistance the way “Calculations with custom fields” would.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 17, 2022, 3:52pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/7 "2022-01-17T15:52:30Z")

</div>

Thank you, I wish you a happy life too 🙂

But…

> [@Ahmed\_Saif](#):
>
> ![2](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/a/a/aa910b932bf5ada10e39723cf2436a3089a7ef90.jpeg)

That’s not the way to do it. To be realistic, you probably need to hire a developer to do this for you. What I can do for you is give you a nudge in the right direction and I hope it helps.

1. Go to the **View** screen of the **Plain** theme

2. Copy to \> New Theme

3. Insert this at the beginning of the theme:

```auto
{% assign SUM = custom_fields['Field 1'].text | plus: custom_fields['Field 2'].text %}

```

1. Insert this at the end of the theme:

```auto
Total field 1 & field 2: {{ SUM }}

```

1. Name the theme and save it

2. Use it to view the transaction in question

The placement of isn’t going to be “perfect” per se, but this as far as you can get without learning the basics of HTML and Liquid.

Alternatively, you can simply do this:

> [@Ealfardan](#):
>
> Use infield calculations for the summary field:
> 
> ```auto
> 3444823 + 848
> 
> ```

---

<div class="post-metadata">

**Author:** ![Ahmed\_Saif](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ahmed_saif/32/24136_2.png) [@Ahmed\_Saif](https://forum.manager.io/u/Ahmed_Saif)\
**Post date:** [January 19, 2022, 8:46am UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/8 "2022-01-19T08:46:30Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [February 22, 2022, 4:56pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/10 "2022-02-22T16:56:19Z")

</div>

English only please on the forum, @mahmoud_osman.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [February 22, 2022, 5:12pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/12 "2022-02-22T17:12:55Z")

</div>

You may not know English, but you can use translation software. Most of the forum members with the most experience do not know Arabic. Also, please do not double post your questions on two different topics.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [July 5, 2026, 8:14pm UTC](https://forum.manager.io/t/calculations-with-custom-fields/39356/13 "2026-07-05T20:14:59Z")

</div>

Uncategorized topics older than 3 years with no recent activity
