This method is used to hide any item on the page that has an ID. It works both on server side and on the client side.
For elements in the data grid on the List and Print pages, use the recordId parameter in the After record processed event:
Hidden Edit controls are submitted with the form and saved in the database. Hidden controls will be filled by the Autofill feature. You can apply default values to hidden controls.