We have a form that has some built in calculations (using the calculations feature in Forms) being done and they work correctly. We also have some JavaScript that is copying values from fields into other fields for various reasons. The problem is that when the end user pulls up the form, it does the built in calculations, but I am guessing the custom JavaScript runs after that and so the values that are being copied into one of those fields the calculation is using does not update. Is there a way in the JavaScript to tell the built in calculations to run again?
Question
Question
Is There a Way to Run the Built In Calculations Using JavaScript?
asked on October 5, 2016
2
0
Answer
SELECTED ANSWER
replied on October 6, 2016
If this is related to the table copying code I sent yesterday, then you probably want to trigger a "change" event on the fields as you copy the values in. You can chain this onto the end of the existing command... like $('.Something input').val('New Value').change();
1
0
Replies
You are not allowed to reply in this post.
You are not allowed to follow up in this post.