I’m able to write a dynamic expression to add up 3 separate values on one page of my app, however when I write an identical expression to do the same math operation on a different page, the input where the sum is to be shown is blank.
The below screen shot shows the expression which is working fine.
When I write this expression using different inputs, it doesn’t appear the these values are being summed as the product (Total Duration is 0) as shown in the screen shots below.
What do you have when you inspect the total input in debug mode? (click on inspect, click on the input field and click on the initial content value on the left side. You will see the formula in the right side of debugger and you can inspect each part.
This may be happening because the “Initial content” is loaded as soon as the component is rendered. If the information for the first inputs is being inserted afterwards, then the “Initial content” of that last input will indeed appear empty.
Are the values “1” in the first 3 inputs being entered manually after the page loads?
Yes, the values “1” are entered manually after the Pop up is rendered, and the drop down (select activity) has an activity selected . I just entered 1 in each input to keep it simple.
The “initial value” field doesn’t appear, there is a field called “ initial content” , is that what you mean? Here’s the expression when I click on the 0 (Value)