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)

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

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