Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Xrm.Page.data.entity.save() not working for Two Options field in Dynamics CRM

$
0
0

Hi,

I had a requirement where I need to save data from required fields inside a tab, save the data and close the tab. I handle this using javascript in the following sequence:

1. Fields when a tab is open are required. I fill the fields.

2. When all the required fields in a tab are filled, the tab is closed making all the fields note required and then Xrm.Page.data.entity.save() is called.

3. Once the tab is closed, the data is saved and it works all fine.

However, this is not the case with Two Options fields.

The data is saved, but the values of Yes / No are reverted to what they were before I changed them. I debugged this and found that my method is called twice by Two Options field and not by any other field.

Note: This happens only when I use Chrome. But not on IE.

Any help is appreciated! 


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>