Parent form goes blank after I do "go to main table"?

I’m trying to hide/show certain types of notes on the DocuView form. I have my own custom 1:1 table that only has a checkbox on it that is joined to DocuView. I have it working to hide certain rows, except when I click on a field in DocuView and do “go to main table”, my DocuView form goes blank? Not a huge bug, but a bug none the less. Any idea how to fix?

Here is my code:

//DocuRef:Init
qB2 = qB.addDataSource(tableNum(TAGDocuType));
qB2.relations(true);
qB2.joinMode(JoinMode::ExistsJoin);
criteriaRestrictedNote = qB2.addRange(fieldnum(TAGDocuType, RestrictedNote));

//DocuRef:executeQuery
criteriaTASRestrictedNote.value(global::queryValue(NoYes::No));