• WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG
    • WHO WE ARE
    • WHAT WE DO
      • Salesforce
        • Implementations
          • Sales Cloud
          • Service Cloud
          • CPQ
          • Field Service Lightning
          • Field Service for SMEs
        • Developments
          • Salesforce Customization
          • Custom Application Development
          • AppExchange Product Development
        • Migrations
          • Classic to Lightning Migration
          • Other Systems to Salesforce Migration
        • Integrations
      • Data Science
        • BI Solutions
        • AI/ML solutions
        • Agentic AI
    • HOW WE DO
      • Delivery Model
      • Our Works
    • REACH US
      • Contact Us
      • Careers
    • BLOG
  • [email protected]
  • (+91) 44-49521562
Merfantz - Salesforce Solutions for SMEs
Merfantz - Salesforce Solutions for SMEs
  • WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG

Auto Correct Words Using Visualforcepage in Salesforce

  • July 31, 2017
  • Merfantz Editor
  • Salesforce Developments Tutorial
  • 0

In real time business, you have a lot of work pressure so you did some mistake on typing word is possible. To avoid this mistake we have explained the below.

For example, we created one web form in visual force page which contains comments text area. What you type as mistaken it will automatically correct. Use the below code you can achieve this.

<apex:page standardController=”Case”>
<apex:form id=”frmId”>
<apex:pageBlock title=”Case Details” mode=”edit” id=”pgBlock”>
<apex:pageblockbuttons >
<apex:commandButton action=”{!Save}” value=”Save”/>
<apex:commandButton action=”{!Cancel}” value=”Cancel”/>
<input type=”button” value=”Check Spelling” class=”btn” onclick=”doSpellingCheck()”/>
</apex:pageblockbuttons>

<apex:pageBlockSection title=”Case Fields” columns=”2″>
<apex:inputField value=”{!case.AccountId}”/>
<apex:inputField value=”{!case.contactId}”/>
<apex:inputField value=”{!case.status}” required=”true”/>
</apex:pageBlockSection>

<apex:pageBlockSection title=”Spell checking” columns=”1″ id=”section2″>
<apex:inputTextarea id=”caseDesc” value=”{!case.Description}” cols=”150″ rows=”10″ />
</apex:pageBlockSection>

</apex:pageBlock>
</apex:form>

<script type=”text/javascript” src=”https://zaa-dev-ed.my.salesforce.com/static/111213/js/spch.js”> </script>

<script type=”text/javascript”>

function doSpellingCheck(){
doSpell({ctrl: ‘{!$Component.frmId.pgBlock.section2.caseDesc}’,
lang:’en_US’,
title:’Check Spelling’,
intLang:’en_US’,
organizationId:’00D40000000Iekr’,
userId:’00540000000nz6A’},
‘/servlet/SProxyWrapper’, document.location.protocol + ‘//’ + ‘spell-chi.salesforce.com/spellcheck’,
‘There is nothing to check’,
‘We are sorry,our spellchecker currently does not support the browser you are using. Please upgrade your browser.’,
‘The Spell Checker is not available in this language.’);
}
</script>
</apex:page>

Result:-

Visualforcepage

We are the ISV Partners and Please reach us for custom development => www.merfantz.com

Author Bio

Merfantz Editor
+ Recent Posts
  • August 4, 2023
    How to Setup CRM Analytics for Financial Services Cloud
  • August 2, 2023
    How to Get Started with Salesforce Hyperforce - Merfantz
  • July 28, 2023
    Health Cloud Mastery: Salesforce Trailhead for Effective Healthcare CRM
  • July 26, 2023
    How to integrate Data cloud and Marketing cloud In Salesforce
Tags: Field Service ManagementFieldax
  • Previous Custom Button Use to Popup Message in Salesforce
  • Next Output Value Based on Different Conditon in Salesforce

Leave a Reply

You must be logged in to post a comment.

Merfantz Technologies is a leading Salesforce consulting firm dedicated to helping small and medium enterprises transform their operations and achieve their goals through the use of the Salesforce platform. Contact us today to learn more about our services and how we can help your business thrive.

Discover More

Terms and Conditions
Privacy Policy
Cancellation & Refund Policy

Contact Info

  • No 96, 2nd Floor, Greeta Tech Park, VSI Industrial Estate, Perungudi, Chennai 600 096, Tamil Nadu, INDIA
  • (+91) 44-49521562
  • [email protected]
  • 9:30 IST - 18:30 IST

Latest Posts

Let Einstein Help You Build - Salesforce Flow
Let Einstein Help You Build – Salesforce Flow May 15, 2025
Mastering Attachment Compression for Salesforce Developers May 9, 2025
Salesforce API Integrations: Connect with Slack, Zoom, and Teams May 2, 2025

Copyright @2023 Merfantz Technologies, All rights reserved