Skip to main content
September 16, 2021
Question

How to create a total field

  • September 16, 2021
  • 7 replies
  • 1 view

Hi,

I'm new to Appian and I'd like to create a total field.

example:

field1+

field2 +

field3+

field4

-------

total 

and I'd like to display the total in a text field 

thanks,

7 replies

mikes0011
Brainy
September 16, 2021

The simplest way by far would be to create a 5th text field below the previous 4, and set it to readOnly with a value of "ri!field1 + ri!field2 ..." etc.

The Expression Guru
omara0004Author
September 16, 2021

Hi Mike, 

I was able to display the total amount of the 4 fields in a text field but how can I save the sum of 4 fields in my total fields. In powerApps , you just need to create a calculated field but I don't know how it works in Appian.

Thanks,

mikes0011
Brainy
September 16, 2021

This depends a bit on the context of what you're trying to do and where/how.  Is this a form used on a Task in a running process model?  If so, the easiest way I've found to do something like this is to have your Submit button save the calculated value into a Rule Input, passing that value back into the process where you can use it for whatever you were wanting.

The Expression Guru