Custom Forms/ automatically generated two fields together. | Community
Skip to main content
Level 2
March 21, 2023
Solved

Custom Forms/ automatically generated two fields together.

  • March 21, 2023
  • 1 reply
  • 507 views

I am creating a custom form with one field as total in-store sales and another field as total online sales. I need to create a field (total sales) that will automatically generate the sum of those two fields ( in-store + online). What would the backend calculation logic look like? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Manish_Singh

Hi there! To calculate the total sales, you can use the following formula:
SUM({DE:Total In-Store Sales},{DE:Total Online Sales})

Please remember that custom fields should be prefixed with "DE:". Also, make sure to replace "Total In-Store Sales" and "Total Online Sales" in the formula with your actual field values.

Make sure you choose the correct format:

 

 

1 reply

_Manish_Singh
_Manish_SinghAccepted solution
Level 9
March 21, 2023

Hi there! To calculate the total sales, you can use the following formula:
SUM({DE:Total In-Store Sales},{DE:Total Online Sales})

Please remember that custom fields should be prefixed with "DE:". Also, make sure to replace "Total In-Store Sales" and "Total Online Sales" in the formula with your actual field values.

Make sure you choose the correct format: