Skip to main content
Nintex Community Menu Bar
Solved

Sum not working real time.

  • April 18, 2024
  • 4 replies
  • 75 views
  • Translate

Forum|alt.badge.img+2

Nintex responsive form on SharePoint 2019

 

I’ve got a sum field that totals 10-14 fields depending on how many are chosen. 

Even using named controls the sum field is not working in real time. 

 

When

FIELD_A==”Yes” && FIELD_B==”No”

Then

Set Value

sum([_1a Score A,_1b Score A,_1c Score A,_2a Score A,_2b Score A,_2c Score A,_3a Score A,_3b Score A,_3c Score A,_4a Score A,_4b Score A])

 

By default FIELD_A and FIELD_B are set to Yes and No. 

What am I missing here? 

Best answer by bamaeric

One option to try is to use a Calculated Value control for the total and configure it with something like the formula below (I only used 4 integer fields for the socres):

If(and(FIELD_A,not(FIELD_B)),sum([ScoreA, ScoreB, ScoreC, ScoreD]),0)

This will calculate the Total sum if FIELD_A is checked, FIELD_B is unchecked, and numbers are added to the score fields. If the checkboxes don’t meet the conditions, then 0 is display in the Total field.

View original
Did this topic help you find an answer to your question?

4 replies

bamaeric
Forum|alt.badge.img+13
  • Apprentice
  • 464 replies
  • April 18, 2024

I assume you are using the Responsive designer (and not the New Responsive designer). What type of controls are FIELD_A and FIELD_B -- Yes/No or Choice?

The Yes/No (checkbox) control can be tricky in form rules. Check out the blog post below and see if it helps with the rule:

Hiding Controls With Rules in Nintex Forms | Community

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2465 replies
  • April 18, 2024

Hi @Ryan1,

If Yes and No is not working, try true and false.

Translate

bamaeric
Forum|alt.badge.img+13
  • Apprentice
  • 464 replies
  • Answer
  • April 18, 2024

One option to try is to use a Calculated Value control for the total and configure it with something like the formula below (I only used 4 integer fields for the socres):

If(and(FIELD_A,not(FIELD_B)),sum([ScoreA, ScoreB, ScoreC, ScoreD]),0)

This will calculate the Total sum if FIELD_A is checked, FIELD_B is unchecked, and numbers are added to the score fields. If the checkboxes don’t meet the conditions, then 0 is display in the Total field.

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 671 replies
  • April 30, 2024

Hy @Ryan1 
Have you solved your question?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings