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

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

    hi,

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

  • Suggested answer
    SCV Profile Picture
    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
    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
    17,078 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
    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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans