Trigger spell check

Home Forums General discussion Trigger spell check

Viewing 2 reply threads
  • Author
    Posts
    • #19511
      Gerard Graham
      Participant

        Hi there

        Is there a way of triggering a spell check of selected fields on tabs when the user attempts to save a form? Either to force correcting or at least alerting them to the issue.

        Thanks

        Gerry

      • #19562
        Alexander Bautz
        Keymaster

          Hi,
          I haven’t built in support for handling the spellcheck in DFFS, but you should be able to trigger it in custom code by calling this built in function:

          SP.UI.Spellcheck.SpellChecker.Spellcheck();

          Maybe you can add a button / banner above the save button to tell the user to spellcheck before submitting?

          Please note that I have only tested this in SharePoint online / Office 365.

          Alexander

        • #25481
          Maciek Grischke
          Participant

            I used this code to enable browser’s spell checker on all text fields. For some reason, it’s disabled on SharePoint…

            $(document).ready( function() {
                $("input[type='text'], textarea").attr('spellcheck',true);
            });
            
        Viewing 2 reply threads
        • You must be logged in to reply to this topic.