hide header

is there a way to hide a header and the elements within the header?

I have a header in a record view form that I want hidden or shown depending on certain things prior to displaying it to the user.

I have the fields hidden but there is some extra blank space on the form that I do not wish to be displayed in the header section of the form.

Thanks

Hi Ernest,

Form parts don’t have runtime properties. You can however use the SolutionModel to change the blueprint of the form and add/remove the (header) form part that way.
Just be aware that once you changed the blueprint and called controller.recreateUI() any runtime properties you had set (like hiding of fields) will need to be reapplied.

Hope this helps.

Thanks ROCLASI for the information.

Ended up just keeping the form as is and hiding the fields.

the form is a little longer than it needs to be, with a little blank space, but it’ll suffice for now.