Global Variable errors

I have a form that I have a global variable set as [volID] = {volunteerID}; in the AfterInsert action on that form. I see the variable in the Global Variables under Application and have set the parameter as “Out”. I have a form link to a blank page where I am simply trying to echo the [volID] on the blank application called but all I get on the blank form is the message

$this->sc_temp_volID

What am I doing wrong?

Maybe {volunteerID} has lost its value on the AfterInsert(). Have you tried to do it on the BeforeInsert() or ValidationSuccess()?

regards,
Bernhard Bernsmann