web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • 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

  • 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!

  • 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
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans