How To: Spell Check InfoPath web form in SharePoint 2010
Posted
by Jeremy Ramos
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Jeremy Ramos
Published on Thu, 07 Nov 2013 11:08:57 GMT
Indexed on
2013/11/07
21:56 UTC
Read the original article
Hit count: 342
How to
Originally posted on: http://geekswithblogs.net/JeremyRamos/archive/2013/11/07/how-to-spell-check-infopath-web-form-in-sharepoint-2010.aspx
This is a sequel to my 2011 post about How To: Spell Check InfoPath Web Form in SharePoint. This time I will share how I managed to achieve Spell Checking in SharePoint 2010.
This time round, we have changed our Online Forms strategy to use Custom lists instead of Form Libraries. I thought everything will be smooth sailing as we are using all OOTB features. So, we customised a Custom list form using InfoPath and added a few Rich Text Boxes (Spell Check is a requirement for this specific project). All is good in the InfoPath client including the Spell Checker so, happy days, I published straight away.
Here comes the surprises now. I browsed to my Custom List and clicked Add New Item. This launched my Form in a modal dialog format. I went to my Rich Text Boxes to check the spell checker, and voila, it's disabled!
I tried hacking the FormServer.aspx and the CustomSpellCheckEntirePage.js again but the new FormServer.aspx behaves differently than of MOSS 2007's. I searched for answers in many blogs to no avail. Often ending up being linked to my old blog post.
I also tried placing the spell check javascript into a Content Editor Webpart of the Item's New Form and Edit form. It is launching the Spell Check dialog but it's not spellchecking the page correctly.
At this point, I decided I needed to get my project across ASAP so enough with experimentations and logged a ticket with Microsoft Premier Support.
On a call with the Support Engineer, I browsed through the Custom List and to the item to demonstrate my problem. Suddenly, the Spell Check tab in the toolbar is now Enabled!
Surprised? Not much, it's Microsoft!
Anyway, to cut my story short, here is a summary of my solution:
- Navigate to your Custom List
- In the Ribbon Toolbar, navigate to List > Customize List > Form Web Parts > Content Type Forms > (Item) New Form. This will display the newifs.aspx which is the page displayed when Add New Item is clicked. This page, just like any other SharePoint page, contains webparts. In this case, we have the InfoPath Form Web Part.
- Add a Content Editor Web Part (CEWP) on top of the InfoPath Form Web Part. (A blank CEWP would do for this example)
- Navigate to Page and click Stop Editing
- Click Add New Item again and navigate to a Rich Text box. Tadah! The Spell Check tab is now enabled!
- Do the same steps for the (Item) Edit Form to enable Spell Checks when editing an item.
This "no code" solution discovered purely by accident!
© Geeks with Blogs or respective owner