Skip to main content
Nintex Community Menu Bar

Calculated field does not recalculate when value(s) change?

  • Nov 6, 2014 3:06 PM UTC
  • 8 replies
  • 106 views
  • Translate All

Forum|alt.badge.img+3

Hi everybody,

either I can't find it or the function is missing...

I've built an overtime request form with a calculated value field that calculates the difference between "From" and "To" in hours.
The formula (dateDiffHours(From,To)) works great, but the field can only be recalculated on "view", "edit" or "new" action.
Isn't there a possibility to trigger recalculation when one of the date/time fields changes?

Thanks for any hint or even confirming that the function isn't available.

BR, Rouven

Capture.PNG

8 replies

Forum|alt.badge.img+17
  • Nintex Partner
  • Nov 6, 2014 3:44 PM UTC

I've seen a solution that had a similar issue with calculated fields and they used JavaScript to cause the calculated field to update when an item changed. James Cragle‌ may have more information.

Translate

Forum|alt.badge.img+12
  • Nov 7, 2014 1:41 AM UTC

Hello,

Are you using a "Calculated Field" control for your Total Field?   I just tested this with a calculated field control and the change is instantaneous when either of my two date fields are changed.

Make sure you are using the names of your date controls,and not the item property fields within your formula.   If you are doing what I described, then what version of Nintex are you currently using?

Thanks

Translate

Forum|alt.badge.img+3
  • Author
  • Nov 7, 2014 6:41 AM UTC

Thanks a lot, this solved my problem. Very easy solution, but I didn't recognize this option.

Translate

Forum|alt.badge.img+3
  • Author
  • Nov 7, 2014 7:01 AM UTC

Hi James,

thanks a lot. I assume that would work too but the hint from mmatsako could solve my problem and was very easy to implement.

BR, Rouven

Translate

Forum|alt.badge.img+12
  • Dec 9, 2015 3:28 PM UTC

Did the same thing in the past so I agree!

Translate

Forum|alt.badge.img+6
  • Nintex Partner
  • Mar 9, 2016 1:15 PM UTC

The .trigger('change') does not work in Office 365.

Do you have another idea?

Translate

Forum|alt.badge.img+6
  • Jun 2, 2016 10:32 AM UTC

Try calling .change() instead.

Translate

Forum|alt.badge.img+1
  • Jan 10, 2017 10:35 AM UTC

I just had the same issue - .trigger('change') and .change() didn't work.

.trigger('focusout') did however - just if anyone has the same problem in the future.

Translate