$$REturn displaying new field after WebQuerySave

I have a form that is sumitted and have a WebQuerySave agent go out to a CFG doc and grab and update a traking number and place it on the new submitted doc. I want to show that value using the $$Return. I am having trouble getting it to display. It may be the order of when the $$Return shows it.

The sequence is

Fill out form.

Click on javascript button to submit

WebQueryAgent runs, gets tracking number from a different db and updates it

Places new traking number on submitted form.

Displays results of $$return. No tracking nbr though.

Maybe I just can’t do it.