How can I update the form calculation widget with the API?