Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Backspace is not working in text box HTML

(0) ShareShare
ReportReport
Posted on by 395

Hi folks,

I have created one html page then added in web resource and published. it is in Quote form.

In this HTML i have one text box.

if i add  "ClientGlobalContext.js.aspx" library in that HTML then the text box backspace is not working

<script type="text/javascript"  src="ClientGlobalContext.js.aspx"></script>

and moreover i want to use this "ClientGlobalContext" library to open a custom lookup window

but backspace is working if i remove that "ClientGlobalContext" library.

 

please help!

 

*This post is locked for comments

  • Suggested answer
    Somesh2207 Profile Picture
    1,563 on at
    RE: Backspace is not working in text box HTML
    Hi Jeeva, This is known issue, I have encountered this multiple times, it happens when your text box is not of type - text. If your HTML input type is search, number or anything else, backspace does not work. If your HTML input type is Text, then Backspace will work. Please try with input type text, and let us know if it works
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Backspace is not working in text box HTML

    I have been able to resolve this issue by running the following code on DOM ready:

    if (window.Sys && window.Sys.UI && window.Sys.UI.DomEvent && window.Sys.UI.DomEvent.prototype) {
      window.Sys.UI.DomEvent.prototype.preventDefault  = function() { };
      window.Sys.UI.DomEvent.prototype.stopPropagation = function() { };
    }


    This will allow you to still use the functions that ClientGlobalContext provides, while keeping it from interfering with your key and mouse events.

  • Suggested answer
    Savaco Business Applications Profile Picture
    160 on at
    RE: Backspace is not working in text box HTML

    2 years later and although this bug is still present, we've seem to have found the cause of the issue! It's reproducable when you have an input element with the attribute type="search". Simply change the type of your input element (e.g. to "text") and the backspace is working again!

  • Community Member Profile Picture
    on at
    RE: Backspace is not working in text box HTML

    Yeah this is one of those weird behaviors that would be good to be fixed by Microsoft.  I found that I actually had no reason to be adding this library in the first place for my functionality and I added it as an assumed need.  According to MSDN you only really need this to get the context if your web resource doesn't exist on a form and cannot leverage Xrm.Page.context

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans