Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

field value vanishing

Posted on by Microsoft Employee

Hi,

I am trying to set field values from one entity to other using odata when it loads it seems like values are set but when form is completely loaded values vanishes  .I have tried set submit mode but problem continues.What may be the reason of this?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: field value vanishing

    hi,

    Did sou check the plugins? (retrieve, preupdate events)?

  • Suggested answer
    SCV Profile Picture
    SCV 1,004 on at
    RE: field value vanishing

    Do an advanced find query for that record (adding those fields to the results columns) to make sure the data sits in the database. If so I would suggest to create a new form from scratch and see how it goes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: field value vanishing

    Hi ,

    I have disabled all other JS on the field change or on load of form .There is no business rule.And also tried passing hardcode string still values vanish on complete form load.

    Xrm.Page.getAttribute("bam_gstuin").setValue("HGFGF");

    Xrm.Page.getAttribute("bam_gstuin").setSubmitMode("always");

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: field value vanishing

    Hi Purnima,

    Have you registered any other Javascript function on load or Business Rule which clears the above-said fields?

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: field value vanishing

    Hi,

    Please check if any other business rule or javascript is working on the form which is vanishing the value on page load.

    Thanks.

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: field value vanishing

    Hi,

    Setsubmit mode work with Save event, if you are not saving record no use of setsubmit mode. It may be there is another peace of code which is clearing values from those fields. Recheck all the code/logic which is called on formload or onchange of the fields. You can share it here as well for inquiry.

  • Mir Hassan Ali Profile Picture
    Mir Hassan Ali 1,720 on at
    RE: field value vanishing

    Hi Purnima

    Can you please share your code that you are using to set values.

    Regards

    Mir

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans