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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

field value vanishing

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Mir Hassan Ali Profile Picture
    1,720 on at

    Hi Purnima

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

    Regards

    Mir

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    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.

  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at

    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
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Purnima,

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

  • Community Member Profile Picture
    on at

    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
    SCV Profile Picture
    1,004 on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    hi,

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans