It depends how you call the form.
One way would be to pass the values via url.
-----------------------------------------------------------------------------------------------------
/// This property holds the ID1 passed in by URL (if any).
Property pKey1 As %ZEN.Datatype.string ( ZENURL = "ID1" );
/// This property holds the ID2 passed in by URL (if any).
Property pKey2 As %ZEN.Datatype.string ( ZENURL = "ID2" );
-----------------------------------------------------------------------------------------------------
Now you can use the attribute "key" with Zen runtime expression.
(Only if the Form is not connected to a dataController!).
-----------------------------------------------------------------------------------------------------------------------
<form id="Fields" OnLoadForm="LoadForm" key="#(%page.pKey1)#,#(%page.pKey2)#"
-----------------------------------------------------------------------------------------------------------------------
**Владо