Journal name form - control visibility

Hi ,

I’m new to Ax 2012.

In inventJournalName form I have added one new field, my requirement is ‘this field should be visible only in 2 places’

1.In setup → journal-> journal name inventory

2.View details from movement journal., if we are checking view details of Name from different journal then It should not visible.

I have written the code in enableField method of the form. But not sure it is a correct place to write.

Kindly help me, if anyone knows.