Remove custom field from bottom of form

I recently added two custom fields in my form and found this code on the forum to show it on top of the form… which worked. There was also instruction given that how to remove the same custom field from the bottom of the form so it only show it once. But it only removes one custom field from the bottom. Can anyone help me with the coding. Thanks!

As ‘Transaction Account’ is removed perfectly from the bottom, same i want to do with the ’ Cheque No’.

please refer to the below link