Jun 17 2021 09:05 AM - edited Jun 17 2021 09:06 AM
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!
Jun 17 2021 01:42 PM
SolutionJun 17 2021 02:04 PM
Hi @Juan Carlos González Martín , Probably that might be the reason. I tried other parameters for SPSearchSettings which are working fine. Hope it's operational soon.
Jun 18 2021 12:21 AM - edited Jun 20 2021 04:35 AM
@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.
Jun 18 2021 08:52 AM
Jun 18 2021 08:57 AM - edited Jun 18 2021 09:03 AM
@bgrede Great, glad it worked for you. Please Mark as Best Response on my above post so that it will help others in future to find the correct answer easily. Thank you!
Jun 17 2021 01:42 PM
Solution