Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Custom Forms/ automatically generated two fields together.

Avatar

Level 2

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? 

1 Accepted Solution

Avatar

Correct answer by
Level 9

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:

_Manish_Singh_0-1679430139544.png

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

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:

_Manish_Singh_0-1679430139544.png