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
hi,
Did sou check the plugins? (retrieve, preupdate events)?
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.
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");
Hi Purnima,
Have you registered any other Javascript function on load or Business Rule which clears the above-said fields?
Hi,
Please check if any other business rule or javascript is working on the form which is vanishing the value on page load.
Thanks.
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.
Hi Purnima
Can you please share your code that you are using to set values.
Regards
Mir
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156