How do I dynamically update a webform submission?
Using the value submitted in Webform Field A, I need to check a third-party database to get a second value and insert it into Webform Field B.
I've been able to retrieve my second value, and thanks to the latest update I can now access the sid for any given submission. What I can't figure out is how to put them together to update Webform Field B.
Comments
Comment #1
stborchertUntil #1005470: Intelligent saving for webform data is done there is no easy way to do this.
You'll have to load the submission manually (function webform_get_submission), modify the values of the returned object and save it back using function webform_submission_update().
Warning: this will trigger the rules event "After a webform submission has been updated" as if you edit the submission by hand.
Comment #2
stborchertIssue cleanup.
Please re-open if something is still unclear or not working.