Sometimes we need to restrict sections in forms to a certain group of users. Instead of simply marking them with a heading such as "HR Use Only" or "Information Services Use Only", we can show or hide a section based on the logged in user. This article describes how to achieve that in InfoPath.
– Add /DispForm.aspx?ToolPaneView=2 to the URL
This will open the page in editable form and the add a content editor webpart. Edit it to add the HTML content.
– Add for example a ContentEditorWebPart and paste in the script below;