This doesn't come out of the box. Depending on what you want to achieve you might consider connecting a dedicated MF to the on click event, in the MF you create the "hiddden" variable and then call the MF that needs the new what you call hidden variable...
Still trying to figure out what you want to achieve...