I do not know what you have for Add-ons so I cannot answer your question without your Plugin Environment? You need to have an add-on for the function of hide search form for instance…i.e. what do you have for add-ons , i.e Enhanced Search (Legacy), enhanced Map? Experience Add-on?
view our documentation: keyword Shortcodes