Not sure what you are asking because of the terminology you use (I think). F'rinstance, what is a "form ID"?
Your issue might be able to be explained by pointing out the behaviour of navigation forms. Only ONE form is ever loaded. Choose a different tab, form closes, chosen one opens. Thus it is difficult to pass values from one to another if that's what you're asking for. Simplest way is probably to have a public module level variable that gets set when a form opens and then retrieve the value from the second form. Sorry if I've misunderstood your issue.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.