web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

When text box value change in CRM 2015 onpremises

(0) ShareShare
ReportReport
Posted on by 522

Hi,

I came across one problem when i clicked on save button without moving out of cursor from textbox,the system take old value from the textbox and if i clicked any where before save button then system take new value from textbox. 

Can you any body please tell me when any text value change in CRM whether onkeypress or onblur ?

Thanks in Advance

Nausher

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    Where does this happen.

    The value should be changed even if you don't move off before clicking save.

  • Nausher Sayeed Profile Picture
    522 on at

    Hi,

    We have custom save and save & close button. It happen when i clicked on any one of the button.

  • Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    I think this is happening because field only get's dirty when you will pointer from textbox after entering value, this when onchange event fired for the text field, because in CRM 2015, field does not support keypress event.

    Thanks

  • Verified answer
    Nausher Sayeed Profile Picture
    522 on at

    CRM change the field value only when we move from textbox after entering value. XRM internally uses onchange event to set newly value into textbox.

    By using document.getElementById we are getting the latest value from textbox but unfortunately Microsoft not recommending to use document.getElementById.

    So only workaround is we have to click some where or move out from textbox before clicking on save or save & close button.

  • Community Member Profile Picture
    on at

    Wouldn't it be possible to add some sort of unfocus on all controls onsave?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans