Refresh "calculations" during form.validate
This question is kind of similar to https://discordapp.com/channels/711271361523351632/1071883200378445854/1071883200378445854
However, that example is a simple calculation involving two of the readily available form fields, whereas mine isn't as simple in that one of the inputs needs an aggregation of counts from an embedded array field as shown below. I want to be able to display the remaining count of an item which would decrease as the user increases the usage count.
I'm not sure how to initiate the re-calculation, but here is what I tried.
3 Replies
Then I get an error message
I’m not sure about the error message, but exposing the calculation like in the other thread you mentioned is probably the best way to go about it. Basically there isn’t a great way to recalculate values live on a form, it’s typically something you need to do manually.
Although I think it’s something we can have a utility for in the future.
Thank you. I will try!