Question

Good Morning;

I am using Sharepoint 2013 OP with SPD2013.

I have made a custom form using SPD2013. I want to hide the "Spell check" icon at the top of the form. How do I do that?

Était-ce utile?

La solution

I would guess that you have the problem with the Spelling... link which shows up when you have a text editor on the page. If that's the case, you can remove it by using the following javascript:

var d = document.querySelectorAll(".ms-toolbar");
for(var v in d) if (d[v].style) d[v].style.display = "none";

Please check if there is anything else on the page with the class ms-toolbar and make the appropriate changes to exclude it if there is.

Autres conseils

To hide the default Spell check option on SharePoint form, you can use either one of the below solution:

  1. Using Javascript: You can add the Script Editor web part on you form page and use below javascript code:

    <script type="text/javascript"> document.querySelector("li[id='Ribbon.ListForm.Edit.SpellCheck']").style.display = "none"; </script>

  2. Using CSS: You can add the Script Editor web part on you form page and use below CSS code:

    <style type="text/css"> #Ribbon\.ListForm\.Edit\.SpellCheck { display: none !important } </style>

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top