Forum Discussion
Unable to change Search Placeholdertext in SharePoint Online
Hello Community,
I'm trying to change the default text "Search in Sharepoint" to a different text in SP Online Search box. I'm using PnP script to perform the task but the command doesn't work in my tenant. Any idea?
Example: Set-PnPSearchSettings -SearchBoxPlaceholderText "Search in Portal"
Error: Set-PnPSearchSettings : A parameter cannot be found that matches parameter name 'SearchBoxPlaceholderText'.
Please advice!
- Per the documentation of the cmdlet, the parameter is there but it's not properly document so I suspect that it might be not operational and that's the reason you are having that error
5 Replies
- Per the documentation of the cmdlet, the parameter is there but it's not properly document so I suspect that it might be not operational and that's the reason you are having that error
- bgredeCopper Contributor
Hi jcgonzalezmartin , Probably that might be the reason. I tried other parameters for SPSearchSettings which are working fine. Hope it's operational soon.
bgrede I can use Set-PnPSearchSettings -SearchBoxPlaceholderText "Search in Portal" cmdlet without any problem.
Also, it is working as expected, see output below:
Solution: I think you are using an old version of PnP PowerShell. Update PnP PowerShell modules as given in below documentations & then try above command:
You can find the detailed steps at: SharePoint Online: How to change the placeholder text in the search box
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.