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)

without leave focus from control data not saved

(0) ShareShare
ReportReport
Posted on by

Hello All,


I have field on my project product form Price Per Unit when enter some value in textbox and without tab out click on save button, data is getting saved.

But when i have done the same thing with my custom save button that value doesn't save.

Please help me...!!!

*This post is locked for comments

I have the same question (0)
  • Deepesh161 Profile Picture
    6,317 on at
    RE: without leave focus from control data not saved

    Hi Chirag,

    Is your organisation enabled for auto-save feature?

    Also, can you paste the code you are using on your custom save button?

  • Community Member Profile Picture
    on at
    RE: without leave focus from control data not saved

    Hi,

    No, there is no Auto-save feature enabled.

    When i click on save i will able to get value of

    Xrm.Page.getAttribute("priceperunit").getValue() with entered data

    But when i click on custom save button i will able to get value of (if i remove all code from my custom save button)

    Xrm.Page.getAttribute("priceperunit").getValue() with null

  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: without leave focus from control data not saved

    Have a look at this:

    community.dynamics.com/.../115244.aspx

  • Verified answer
    Community Member Profile Picture
    on at
    RE: without leave focus from control data not saved

    I have solved this issue by following code :

    if ($(“input[attrname='[field_logicalname]'”).length > 0 && $(“input[attrname='[field_logicalname]'”) != '')

    {          Xrm.Page.getAttribute(“[field_logicalname]”).setValue($(“input[attrname='[field_logicalname]'”).val());

    }

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
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans