forgive me, but I’m not sure I understand your question - what is payvat text? a boolean you added to to table 80? A batch name you defined? An other kind of variable?
OnOpenForm trigger is the right choice to put your code. CurrForm.Payvat.VISIBLE is a boolean. You can assign to it an other boolean or a logical expression - something like: CurrForm.Payvat.VISIBLE := “Journal Batch Name” = ‘MYBATCH’;