My next idea was to create a hidden field on the section that the calculation is being run on, and assign it the same value as the field of interest from the earlier section on save of that earlier section, then use the hidden variable in the calculation. This appeared to work well, whilst testing the 'copy' field was set to 'show' to make debugging a little easier; the value was copied successfully and the calculation ran fine using this copied value. However, as soon as the copy was changed to 'hide' the .val() function again returns undefined. I'd rather not have to 'show' this duplicated field just to get the calculation to work.
Does anyone have any idea how to resolve the above or a viable workaround?
Thanks in advance